improve homeConfigurations files

This commit is contained in:
William 2026-02-19 07:05:48 -03:00
parent 80b1246ad8
commit 1f9812fea0
2 changed files with 29 additions and 31 deletions

View file

@ -1,7 +1,7 @@
{ inputs, lib, ... }: { inputs, lib, ... }:
{ {
flake."user@io" = inputs.home-manager.lib.homeManagerConfiguration { flake.homeConfigurations."user@io" = {
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux; pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { extraSpecialArgs = {
inherit inputs; inherit inputs;
@ -24,7 +24,7 @@
cli cli
desktop desktop
# other aspect # other aspects
stylix stylix
niri niri
]); ]);

View file

@ -1,35 +1,33 @@
{ inputs, lib, ... }: { inputs, lib, ... }:
{ {
flake.homeConfigurations = { flake.homeConfigurations."user@rotterdam" = {
"user@rotterdam" = inputs.home-manager.lib.homeManagerConfiguration { pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux; extraSpecialArgs = {
extraSpecialArgs = { inherit inputs;
inherit inputs; hostname = "rotterdam";
hostname = "rotterdam";
};
modules = [
{ nixpkgs.overlays = [ inputs.self.overlays.default ]; }
{
home = {
username = "user";
homeDirectory = "/home/user";
stateVersion = "22.05";
};
}
((inputs.import-tree.initFilter (p: lib.hasSuffix ".nix" p)) ./_user)
]
++ (with inputs.self.modules.homeManager; [
# system aspects
base
cli
desktop
gaming
# other aspects
stylix
niri
]);
}; };
modules = [
{ nixpkgs.overlays = [ inputs.self.overlays.default ]; }
{
home = {
username = "user";
homeDirectory = "/home/user";
stateVersion = "22.05";
};
}
((inputs.import-tree.initFilter (p: lib.hasSuffix ".nix" p)) ./_user)
]
++ (with inputs.self.modules.homeManager; [
# system aspects
base
cli
desktop
gaming
# other aspects
stylix
niri
]);
}; };
} }