Fix breakages after upgrading to NixOS 24.05
some things still have to be fixed, but normal operation can go on for now
This commit is contained in:
parent
a4ed0a03d1
commit
7177ce3a10
13 changed files with 18 additions and 92 deletions
|
@ -3,14 +3,14 @@
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
# Nixpkgs
|
# Nixpkgs
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
||||||
# You can access packages and modules from different nixpkgs revs
|
# You can access packages and modules from different nixpkgs revs
|
||||||
# at the same time. Here's an working example:
|
# at the same time. Here's an working example:
|
||||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
# Also see the 'unstable-packages' overlay at 'overlays/default.nix'.
|
# Also see the 'unstable-packages' overlay at 'overlays/default.nix'.
|
||||||
|
|
||||||
# Home manager
|
# Home manager
|
||||||
home-manager.url = "github:nix-community/home-manager/release-23.11";
|
home-manager.url = "github:nix-community/home-manager/release-24.05";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
hardware.url = "github:nixos/nixos-hardware";
|
hardware.url = "github:nixos/nixos-hardware";
|
||||||
|
|
|
@ -16,7 +16,10 @@ in {
|
||||||
|
|
||||||
colorScheme = inputs.nix-colors.colorSchemes.catppuccin-mocha;
|
colorScheme = inputs.nix-colors.colorSchemes.catppuccin-mocha;
|
||||||
|
|
||||||
home.packages = [inputs.picokontroller.packages.x86_64-linux.default pkgs.citrix_workspace];
|
home.packages = [
|
||||||
|
inputs.picokontroller.packages.x86_64-linux.default
|
||||||
|
# pkgs.citrix_workspace
|
||||||
|
];
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
config = {
|
config = {
|
||||||
permittedInsecurePackages = [
|
permittedInsecurePackages = [
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
enableSshSupport = true;
|
enableSshSupport = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
pinentryFlavor = "gnome3";
|
pinentryPackage = pkgs.pinentry-gnome3;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Prevent clobbering SSH_AUTH_SOCK
|
# Prevent clobbering SSH_AUTH_SOCK
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
stableExtraPkgs = with pkgs; [
|
stableExtraPkgs = with pkgs; [
|
||||||
# LSP
|
# LSP
|
||||||
lua-language-server
|
lua-language-server
|
||||||
lua
|
|
||||||
pkgs.nodePackages.typescript-language-server
|
pkgs.nodePackages.typescript-language-server
|
||||||
|
|
||||||
# Formatters
|
# Formatters
|
||||||
|
@ -33,6 +32,9 @@
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
fzf
|
fzf
|
||||||
gcc
|
gcc
|
||||||
|
|
||||||
|
# idk?
|
||||||
|
lua
|
||||||
];
|
];
|
||||||
unstableExtraPkgs = with pkgs.unstable; [
|
unstableExtraPkgs = with pkgs.unstable; [
|
||||||
# LSP
|
# LSP
|
||||||
|
@ -132,7 +134,7 @@ in {
|
||||||
vim-nix
|
vim-nix
|
||||||
|
|
||||||
{
|
{
|
||||||
plugin = nvim-base16;
|
plugin = base16-nvim;
|
||||||
config = ''
|
config = ''
|
||||||
require('base16-colorscheme').setup({
|
require('base16-colorscheme').setup({
|
||||||
base00 = '#${colors.base00}', base01 = '#${colors.base01}', base02 = '#${colors.base02}', base03 = '#${colors.base03}',
|
base00 = '#${colors.base00}', base01 = '#${colors.base01}', base02 = '#${colors.base02}', base03 = '#${colors.base03}',
|
||||||
|
|
|
@ -7,16 +7,16 @@ local opts = {
|
||||||
null_ls.builtins.formatting.stylua,
|
null_ls.builtins.formatting.stylua,
|
||||||
-- Python
|
-- Python
|
||||||
null_ls.builtins.formatting.black,
|
null_ls.builtins.formatting.black,
|
||||||
null_ls.builtins.diagnostics.ruff,
|
-- null_ls.builtins.diagnostics.ruff,
|
||||||
-- Javascript
|
-- Javascript
|
||||||
null_ls.builtins.diagnostics.eslint_d,
|
-- null_ls.builtins.diagnostics.eslint_d,
|
||||||
null_ls.builtins.diagnostics.jsonlint,
|
-- null_ls.builtins.diagnostics.jsonlint,
|
||||||
-- C/C++
|
-- C/C++
|
||||||
null_ls.builtins.formatting.clang_format,
|
null_ls.builtins.formatting.clang_format,
|
||||||
-- Nix
|
-- Nix
|
||||||
null_ls.builtins.formatting.alejandra,
|
null_ls.builtins.formatting.alejandra,
|
||||||
-- Rust
|
-- Rust
|
||||||
null_ls.builtins.formatting.rustfmt,
|
-- null_ls.builtins.formatting.rustfmt,
|
||||||
-- YAML
|
-- YAML
|
||||||
null_ls.builtins.formatting.yamlfmt,
|
null_ls.builtins.formatting.yamlfmt,
|
||||||
-- Typescript
|
-- Typescript
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
home.packages = with pkgs; [freecad cura super-slicer];
|
home.packages = with pkgs; [freecad cura];
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
../common/optional/docker.nix
|
../common/optional/docker.nix
|
||||||
../common/optional/gaming/gamemode.nix
|
../common/optional/gaming/gamemode.nix
|
||||||
../common/optional/gaming/steam.nix
|
../common/optional/gaming/steam.nix
|
||||||
../common/optional/gaming/vr.nix
|
|
||||||
../common/optional/desktop/japanese.nix
|
../common/optional/desktop/japanese.nix
|
||||||
../common/optional/udisks.nix
|
../common/optional/udisks.nix
|
||||||
];
|
];
|
||||||
|
@ -68,7 +67,8 @@
|
||||||
services.udev.packages = [inputs.heliox-cli.packages.x86_64-linux.default];
|
services.udev.packages = [inputs.heliox-cli.packages.x86_64-linux.default];
|
||||||
environment.systemPackages = [inputs.heliox-cli.packages.x86_64-linux.default];
|
environment.systemPackages = [inputs.heliox-cli.packages.x86_64-linux.default];
|
||||||
|
|
||||||
services.xserver.displayManager.sddm.enable = true;
|
# services.xserver.displayManager.sddm.enable = true;
|
||||||
|
services.xserver.displayManager.gdm.enable = true;
|
||||||
|
|
||||||
# Force disable Nvidia PRIME, needed by nix-hardware
|
# Force disable Nvidia PRIME, needed by nix-hardware
|
||||||
hardware.nvidia.prime.offload.enable = false;
|
hardware.nvidia.prime.offload.enable = false;
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
outputs,
|
outputs,
|
||||||
config,
|
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports =
|
imports =
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
programs.alvr = {
|
|
||||||
enable = true;
|
|
||||||
openFirewall = true;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
with lib; let
|
|
||||||
cfg = config.programs.alvr;
|
|
||||||
in {
|
|
||||||
options = {
|
|
||||||
programs.alvr = {
|
|
||||||
enable = mkEnableOption (lib.mdDoc "ALVR");
|
|
||||||
|
|
||||||
package = mkPackageOption pkgs "alvr" {};
|
|
||||||
|
|
||||||
openFirewall = mkOption {
|
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
description = lib.mdDoc ''
|
|
||||||
Open the default ports in the firewall for the ALVR server.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
environment.systemPackages = [cfg.package];
|
|
||||||
|
|
||||||
networking.firewall = mkIf cfg.openFirewall {
|
|
||||||
allowedTCPPorts = [9943 9944];
|
|
||||||
allowedUDPPorts = [9943 9944];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -2,5 +2,4 @@
|
||||||
# These should be stuff you would like to share with others, not your personal configurations.
|
# These should be stuff you would like to share with others, not your personal configurations.
|
||||||
{
|
{
|
||||||
# List your module files here
|
# List your module files here
|
||||||
alvr = import ./alvr.nix;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
{
|
|
||||||
lib,
|
|
||||||
appimageTools,
|
|
||||||
fetchurl,
|
|
||||||
}: let
|
|
||||||
pname = "alvr";
|
|
||||||
version = "v21.0.0-dev00+nightly.2024.03.03";
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://github.com/alvr-org/ALVR-nightly/releases/download/v21.0.0-dev00%2Bnightly.2024.03.03/ALVR-x86_64.AppImage";
|
|
||||||
hash = "sha256-DCkx8MHcFEkK/IlxIplOYKEzcBM90GQcuqwaftrEdOs=";
|
|
||||||
};
|
|
||||||
|
|
||||||
appimageContents = appimageTools.extractType2 {inherit pname version src;};
|
|
||||||
in
|
|
||||||
appimageTools.wrapType2 {
|
|
||||||
inherit pname version src;
|
|
||||||
|
|
||||||
extraInstallCommands = ''
|
|
||||||
mv $out/bin/${pname}-${version} $out/bin/${pname}
|
|
||||||
|
|
||||||
install -Dm444 ${appimageContents}/alvr.desktop -t $out/share/applications
|
|
||||||
substituteInPlace $out/share/applications/alvr.desktop \
|
|
||||||
--replace 'Exec=alvr_dashboard' 'Exec=${pname}'
|
|
||||||
cp -r ${appimageContents}/usr/share/icons $out/share
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Stream VR games from your PC to your headset via Wi-Fi";
|
|
||||||
homepage = "https://github.com/alvr-org/ALVR/";
|
|
||||||
changelog = "https://github.com/alvr-org/ALVR/releases/tag/v${version}";
|
|
||||||
license = licenses.mit;
|
|
||||||
mainProgram = "alvr";
|
|
||||||
maintainers = with maintainers; [passivelemon];
|
|
||||||
platforms = ["x86_64-linux"];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -2,7 +2,6 @@
|
||||||
# You can build them using 'nix build .#example'
|
# You can build them using 'nix build .#example'
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
# example = pkgs.callPackage ./example { };
|
# example = pkgs.callPackage ./example { };
|
||||||
alvr = pkgs.callPackage ./alvr {};
|
|
||||||
feishin-appimage = pkgs.callPackage ./feishin {};
|
feishin-appimage = pkgs.callPackage ./feishin {};
|
||||||
protonup-rs = pkgs.callPackage ./protonup-rs {};
|
protonup-rs = pkgs.callPackage ./protonup-rs {};
|
||||||
rofi-audio-switcher = pkgs.callPackage ./rofi-audio-switcher {};
|
rofi-audio-switcher = pkgs.callPackage ./rofi-audio-switcher {};
|
||||||
|
|
Loading…
Reference in a new issue