restructure home manager now that I understand it kinda:

This commit is contained in:
2025-10-05 10:14:51 -05:00
parent 480c21f1f1
commit af5148cf2e
2 changed files with 18 additions and 23 deletions

View File

@@ -19,34 +19,18 @@
{ {
nixosConfigurations = { nixosConfigurations = {
snowbelle = nixpkgs.lib.nixosSystem { snowbelle = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; }; extraSpecialArgs = { inherit inputs; };
modules = [ modules = [
./hosts/snowbelle/configuration.nix ./hosts/snowbelle/configuration.nix
home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.default
{ ];
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.blake = import ./users/blake/home.nix;
backupFileExtension = "hmbak";
};
}
];
}; };
vaniville = nixpkgs.lib.nixosSystem { vaniville = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; }; extraSpecialArgs = { inherit inputs; };
modules = [ modules = [
./hosts/vaniville/configuration.nix ./hosts/vaniville/configuration.nix
home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.default
{ ];
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.blake = import ./users/blake/home.nix;
backupFileExtension = "hmbak";
};
}
];
}; };
}; };

View File

@@ -1,9 +1,12 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, inputs, ... }:
let let
cfg = config.users.blake; cfg = config.users.blake;
in in
{ {
imports = [ inputs.home-manager.nixosModules.default];
options.users.blake = { options.users.blake = {
enable = lib.mkEnableOption "enable blake user"; enable = lib.mkEnableOption "enable blake user";
username = lib.mkOption { username = lib.mkOption {
@@ -29,6 +32,14 @@ in
]; ];
}; };
# define home-manager user
home-manager = {
extraSpecialArgs = { inherit inputs; };
users = {
"blake" = import ./home.nix;
};
};
# define blake group # define blake group
users.groups.blake = { users.groups.blake = {
gid = 1000; gid = 1000;