diff --git a/home/profiles/ci.nix b/home/profiles/ci.nix new file mode 100644 index 00000000..89f48568 --- /dev/null +++ b/home/profiles/ci.nix @@ -0,0 +1,3 @@ +{pkgs, ...}: { + nix.package = pkgs.lix; +} diff --git a/home/profiles/common/nix.nix b/home/profiles/common/nix.nix index e2b3ca4a..a1bdd742 100644 --- a/home/profiles/common/nix.nix +++ b/home/profiles/common/nix.nix @@ -1,4 +1,4 @@ -{pkgs, ...}: { +_: { # TODO: add the same treatment as the other nix gc script nix = { gc = { @@ -6,7 +6,6 @@ frequency = "weekly"; persistent = true; }; - package = pkgs.lix; }; # adds to nixpkgs.overlay, made irrelevant due to `home-manager.useGlobalPkgs` #chaotic.nyx.overlay.enable = false; diff --git a/nixos/profiles/gaming/ntsync.nix b/nixos/profiles/gaming/ntsync.nix index 7aa17668..b1d1ebf2 100644 --- a/nixos/profiles/gaming/ntsync.nix +++ b/nixos/profiles/gaming/ntsync.nix @@ -1,3 +1,11 @@ -_: { - programs.wine.ntsync.enable = true; +{pkgs, ...}: { + boot.kernelModules = ["ntsync"]; + + services.udev.packages = [ + (pkgs.writeTextFile { + name = "ntsync-udev-rules"; + text = ''KERNEL=="ntsync", MODE="0660", TAG+="uaccess"''; + destination = "/etc/udev/rules.d/70-ntsync.rules"; + }) + ]; } diff --git a/shells/repo.nix b/shells/repo.nix index 0f48048b..d48ea8f7 100644 --- a/shells/repo.nix +++ b/shells/repo.nix @@ -11,7 +11,7 @@ with pkgs; let nativeBuildInputs = [ nf-build-system nf-update - lix + pkgs.lix fd # fd, better fine! ripgrep # rg, better grep! sops diff --git a/systems/home-base.nix b/systems/home-base.nix index 34701c05..7ec31b6f 100644 --- a/systems/home-base.nix +++ b/systems/home-base.nix @@ -2,6 +2,7 @@ _: let hostConfig = {tree, ...}: { imports = with tree.home.profiles; [ common + ci ]; }; in { diff --git a/systems/home-graphical.nix b/systems/home-graphical.nix index 318ccd48..0154fa71 100644 --- a/systems/home-graphical.nix +++ b/systems/home-graphical.nix @@ -3,6 +3,7 @@ _: let imports = with tree.home.profiles; [ common graphical + ci ]; }; in { diff --git a/systems/home-neovim.nix b/systems/home-neovim.nix index bf5ff261..4cb4857d 100644 --- a/systems/home-neovim.nix +++ b/systems/home-neovim.nix @@ -3,6 +3,7 @@ _: let imports = with tree.home.profiles; [ common neovim + ci ]; }; in { diff --git a/systems/home-shell.nix b/systems/home-shell.nix index 435954b6..e2a166a0 100644 --- a/systems/home-shell.nix +++ b/systems/home-shell.nix @@ -3,6 +3,7 @@ _: let imports = with tree.home.profiles; [ common shell + ci ]; }; in { diff --git a/tree.nix b/tree.nix index 3875124a..69a99cce 100644 --- a/tree.nix +++ b/tree.nix @@ -83,7 +83,6 @@ chaotic.nixosModules.default nixpkgs-xr.nixosModules.nixpkgs-xr spicetify-nix.nixosModules.spicetify - nix-gaming.nixosModules.ntsync nix-gaming.nixosModules.pipewireLowLatency nix-gaming.nixosModules.platformOptimizations clipboard-sync.nixosModules.default