Add device-specific user settings

This commit is contained in:
2021-11-11 01:56:00 +00:00
parent 9263724b59
commit 48217c183b
4 changed files with 41 additions and 12 deletions

View File

@@ -35,10 +35,8 @@
];
};
in {
homeConfigurations = {
daniel = home-manager.lib.homeManagerConfiguration {
inherit system pkgs;
daniel = home-manager.lib.homeManagerConfiguration {
inherit system pkgs;
username = "daniel";
homeDirectory = "/home/daniel";
@@ -52,6 +50,32 @@
};
stateVersion = "21.05";
};
mkUserConf = { hostname, extraPackages ? [] }:
home-manager.lib.homeManagerConfiguration {
inherit system pkgs;
username = "daniel";
homeDirectory = "/home/daniel";
configuration = {
imports = [
./user/daniel/home.nix
({ pkgs, ... }: {
nixpkgs.overlays = [ i3utils.overlay ];
})
] ++ extraPackages;
};
stateVersion = "21.05";
};
in {
homeConfigurations = {
daniel-dingbox = mkUserConf { hostname = "dingbox"; };
daniel-miniding = mkUserConf {
hostname = "miniding";
extraSauce = [ ./user/host-specific/miniding ];
};
};
nixosConfigurations = {