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

@@ -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;