attempt to fix recursion

This commit is contained in:
LordGrimmauld 2024-03-16 16:23:57 +01:00
parent dce74fefdf
commit 36a719b7c5
2 changed files with 4 additions and 6 deletions

View file

@ -15,7 +15,6 @@
}; };
outputs = inputs @ { self, utils, nixpkgs, nix-gaming, ... }: let outputs = inputs @ { self, utils, nixpkgs, nix-gaming, ... }: let
inherit inputs;
lib = nixpkgs.lib; lib = nixpkgs.lib;
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
@ -23,7 +22,10 @@
nixosModules = rec { nixosModules = rec {
default = grimmShared; default = grimmShared;
grimmShared = { grimmShared = {
imports = [./.]; imports = [
./.
inputs.nix-gaming.nixosModules.pipewireLowLatency
];
_module.args.grimm-shared-inputs = inputs; _module.args.grimm-shared-inputs = inputs;
}; };
}; };

View file

@ -1,10 +1,6 @@
{ grimm-shared-inputs, pkgs, config, lib, ... }: let { grimm-shared-inputs, pkgs, config, lib, ... }: let
cfg = config.grimmShared; cfg = config.grimmShared;
in { in {
imports = [
grimm-shared-inputs.nix-gaming.nixosModules.pipewireLowLatency
];
config = with cfg; lib.mkIf (enable && sound) { config = with cfg; lib.mkIf (enable && sound) {
sound.enable = true; sound.enable = true;
hardware.pulseaudio.enable = false; hardware.pulseaudio.enable = false;