flake: factorize home-manager config

This commit is contained in:
Antoine Martin 2021-07-14 18:20:11 +02:00
parent ff673a0890
commit 5ac71e96cd

View file

@ -32,6 +32,14 @@
}; };
outputs = { self, nixpkgs, home-manager, ... } @inputs: { outputs = { self, nixpkgs, home-manager, ... } @inputs: {
nixosModules = {
home = {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.alarsyo = import ./home;
home-manager.verbose = true;
};
};
nixosConfigurations = nixosConfigurations =
let let
@ -54,13 +62,8 @@
modules = [ modules = [
./poseidon.nix ./poseidon.nix
home-manager.nixosModules.home-manager home-manager.nixosModule
{ self.nixosModules.home
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.alarsyo = import ./home;
home-manager.verbose = true;
}
{ {
nixpkgs.overlays = [ nixpkgs.overlays = [
@ -86,13 +89,8 @@
modules = [ modules = [
./boreal.nix ./boreal.nix
home-manager.nixosModules.home-manager home-manager.nixosModule
{ self.nixosModules.home
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.alarsyo = import ./home;
home-manager.verbose = true;
}
{ {
nixpkgs.overlays = [ nixpkgs.overlays = [