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 = {
snowbelle = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
extraSpecialArgs = { inherit inputs; };
modules = [
./hosts/snowbelle/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.blake = import ./users/blake/home.nix;
backupFileExtension = "hmbak";
};
}
];
inputs.home-manager.nixosModules.default
];
};
vaniville = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
extraSpecialArgs = { inherit inputs; };
modules = [
./hosts/vaniville/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.blake = import ./users/blake/home.nix;
backupFileExtension = "hmbak";
};
}
];
inputs.home-manager.nixosModules.default
];
};
};

View File

@@ -1,9 +1,12 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, inputs, ... }:
let
cfg = config.users.blake;
in
{
imports = [ inputs.home-manager.nixosModules.default];
options.users.blake = {
enable = lib.mkEnableOption "enable blake user";
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
users.groups.blake = {
gid = 1000;