begin to create checks to make nixos modules home-manager independent

This commit is contained in:
greyweather committed 2026-08-28 15:19:06 +01:00
1 parent 22d431e271
commit 2ca8b405e8
17 files changed
+100 -210

No files matched your search

+6
View File
@@ -81,5 +81,11 @@
enable = true;
powerOnBoot = false;
};
home-manager.sharedModules = [
({ config, ... }: {
info.isStandalone = false;
})
];
};
}
+4 -2
View File
@@ -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;
+1 -1
View File
@@ -52,7 +52,7 @@
isStandalone = lib.mkOption {
type = lib.types.bool;
default = false;
default = true;
};
};