tree-wide change. seperated config from 'real' modles.
This commit is contained in:
parent
3eee4e105d
commit
a0c1ad0beb
59 changed files with 377 additions and 424 deletions
31
configs/home-manager/common.nix
Normal file
31
configs/home-manager/common.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
home.stateVersion = "23.11"; # Please read the comment before changing.
|
||||
|
||||
# Let Home Manager install and manage itself on non-nixos systems.
|
||||
programs.home-manager.enable = config.targets.genericLinux.enable;
|
||||
|
||||
# enable flakes on non-nixos systems
|
||||
nix =
|
||||
lib.mkIf config.targets.genericLinux.enable
|
||||
{
|
||||
package = pkgs.nix;
|
||||
settings = {
|
||||
experimental-features = ["nix-command" "flakes"];
|
||||
max-jobs = "auto";
|
||||
};
|
||||
gc = {
|
||||
automatic = true;
|
||||
frequency = "weekly";
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
};
|
||||
imports = [
|
||||
../../modules/hostopts.nix
|
||||
../../modules/home-manager
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue