recursion
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
imports = [
|
||||
./programs
|
||||
./services
|
||||
./users
|
||||
];
|
||||
|
||||
options.homeconfig = with lib; {
|
||||
@@ -12,7 +11,7 @@
|
||||
default = null;
|
||||
};
|
||||
|
||||
username = mkOption {
|
||||
name = mkOption {
|
||||
type = with types; nullOr str;
|
||||
default = null;
|
||||
};
|
||||
@@ -30,9 +29,9 @@
|
||||
|
||||
config = {
|
||||
|
||||
home.username = lib.mkDefault config.homeconfig.username;
|
||||
home.username = lib.mkDefault config.homeconfig.name;
|
||||
|
||||
home.homeDirectory = lib.mkDefault "/home/${config.homeconfig.username}";
|
||||
home.homeDirectory = lib.mkDefault "/home/${config.home.username}";
|
||||
|
||||
programs.home-manager.enable = config.homeconfig.standalone.enable;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user