Use homeConfigurations
in nixos configs #18
1 changed files with 9 additions and 27 deletions
28
flake.nix
28
flake.nix
|
@ -49,38 +49,20 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configurations for non-NixOS machines.
|
# Configurations for home-manager.
|
||||||
homeConfigurations = with home-manager.lib; let
|
homeConfigurations = with home-manager.lib; let
|
||||||
|
forEachHost = lib.genAttrs [ "dev-lt-63" "strawberry" "lime" ];
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
overlays = [ self.overlays.default ];
|
overlays = [ self.overlays.default ];
|
||||||
};
|
};
|
||||||
in {
|
in forEachHost (host: homeManagerConfiguration {
|
||||||
# riley @ dev-lt-63
|
|
||||||
"dev-lt-63" = homeManagerConfiguration {
|
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
modules = [
|
modules = [
|
||||||
./system/dev-lt-63/home.nix
|
./system/${host}/home.nix
|
||||||
./shared/home
|
./shared/home
|
||||||
];
|
];
|
||||||
};
|
});
|
||||||
# riley @ strawberry
|
|
||||||
"strawberry" = homeManagerConfiguration {
|
|
||||||
inherit pkgs;
|
|
||||||
modules = [
|
|
||||||
./system/strawberry/home.nix
|
|
||||||
./shared/home
|
|
||||||
];
|
|
||||||
};
|
|
||||||
# riley @ lime
|
|
||||||
"lime" = homeManagerConfiguration {
|
|
||||||
inherit pkgs;
|
|
||||||
modules = [
|
|
||||||
./system/lime/home.nix
|
|
||||||
./shared/home
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
overlays = {
|
overlays = {
|
||||||
default = (import ./shared/overlay.nix);
|
default = (import ./shared/overlay.nix);
|
||||||
|
|
Loading…
Reference in a new issue