attempt to fix recursion
This commit is contained in:
parent
dce74fefdf
commit
36a719b7c5
2 changed files with 4 additions and 6 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue