convention?
This commit is contained in:
@@ -3,10 +3,11 @@
|
|||||||
options.sysconfig = with lib; {
|
options.sysconfig = with lib; {
|
||||||
users = let
|
users = let
|
||||||
|
|
||||||
userType = types.submodule ({ username, ... }: {
|
userType = types.submodule ({ name, ... }: {
|
||||||
options = with lib; {
|
options = with lib; {
|
||||||
username = mkOption {
|
username = mkOption {
|
||||||
type = with types; passwdEntry str;
|
type = with types; passwdEntry str;
|
||||||
|
default = name;
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
@@ -54,7 +55,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
username = lib.mkDefault username;
|
username = lib.mkDefault name;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user