begin to create checks to make nixos modules home-manager independent
This commit is contained in:
17 files changed
+100
-210
No files matched your search
@@ -81,5 +81,11 @@
|
||||
enable = true;
|
||||
powerOnBoot = false;
|
||||
};
|
||||
|
||||
home-manager.sharedModules = [
|
||||
({ config, ... }: {
|
||||
info.isStandalone = false;
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,12 +1,14 @@
|
||||
{ inputs, self, ... }: {
|
||||
flake.homeModules.global = { config, pkgs, ... }: {
|
||||
flake.homeModules.global = { lib, config, pkgs, ... }: {
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
persistent = true;
|
||||
dates = "Sun 05:00";
|
||||
};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nixpkgs.config = lib.mkIf (config.info.isStandalone) {
|
||||
allowUnfree = true;
|
||||
};
|
||||
|
||||
home = {
|
||||
stateVersion = config.info.stateVersion;
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
isStandalone = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
default = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user