attempt to fix flake inputs
This commit is contained in:
parent
aad7c1d8c0
commit
2936c9342b
2 changed files with 9 additions and 5 deletions
|
@ -19,11 +19,13 @@
|
|||
lib = nixpkgs.lib;
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
assembledModule = import ./.;
|
||||
in {
|
||||
nixosModules = rec {
|
||||
grimmShared = assembledModule;
|
||||
default = assembledModule;
|
||||
default = grimmShared;
|
||||
grimmShared = {
|
||||
imports = [./.];
|
||||
_module.args.grimm-shared-inputs = inputs;
|
||||
};
|
||||
};
|
||||
# nixosModule = self.nixosModules.default; # compatibility
|
||||
};
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{ inputs, pkgs, config, lib, ... }: let
|
||||
{ grimm-shared-inputs, pkgs, config, lib, ... }: let
|
||||
cfg = config.grimmShared;
|
||||
in {
|
||||
imports = [
|
||||
inputs.nix-gaming.nixosModules.pipewireLowLatency
|
||||
grimm-shared-inputs.nix-gaming.nixosModules.pipewireLowLatency
|
||||
];
|
||||
|
||||
config = with cfg; lib.mkIf (enable && sound) {
|
||||
|
@ -24,5 +24,7 @@ in {
|
|||
playerctl
|
||||
pulseaudio
|
||||
];
|
||||
|
||||
security.rtkit.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue