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;
|
lib = nixpkgs.lib;
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
assembledModule = import ./.;
|
|
||||||
in {
|
in {
|
||||||
nixosModules = rec {
|
nixosModules = rec {
|
||||||
grimmShared = assembledModule;
|
default = grimmShared;
|
||||||
default = assembledModule;
|
grimmShared = {
|
||||||
|
imports = [./.];
|
||||||
|
_module.args.grimm-shared-inputs = inputs;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
# nixosModule = self.nixosModules.default; # compatibility
|
# nixosModule = self.nixosModules.default; # compatibility
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{ inputs, pkgs, config, lib, ... }: let
|
{ grimm-shared-inputs, pkgs, config, lib, ... }: let
|
||||||
cfg = config.grimmShared;
|
cfg = config.grimmShared;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.nix-gaming.nixosModules.pipewireLowLatency
|
grimm-shared-inputs.nix-gaming.nixosModules.pipewireLowLatency
|
||||||
];
|
];
|
||||||
|
|
||||||
config = with cfg; lib.mkIf (enable && sound) {
|
config = with cfg; lib.mkIf (enable && sound) {
|
||||||
|
@ -24,5 +24,7 @@ in {
|
||||||
playerctl
|
playerctl
|
||||||
pulseaudio
|
pulseaudio
|
||||||
];
|
];
|
||||||
|
|
||||||
|
security.rtkit.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue