Add device-specific user settings
This commit is contained in:
32
flake.nix
32
flake.nix
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user