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: {
nixosModules = {
home = {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.alarsyo = import ./home;
home-manager.verbose = true;
};
};
nixosConfigurations =
let
@ -54,13 +62,8 @@
modules = [
./poseidon.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.alarsyo = import ./home;
home-manager.verbose = true;
}
home-manager.nixosModule
self.nixosModules.home
{
nixpkgs.overlays = [
@ -86,13 +89,8 @@
modules = [
./boreal.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.alarsyo = import ./home;
home-manager.verbose = true;
}
home-manager.nixosModule
self.nixosModules.home
{
nixpkgs.overlays = [