fix?: set default values for name and homeDirectory options
This commit is contained in:
+9
-3
@@ -1,7 +1,13 @@
|
||||
{ lib, ... }:
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
options = {
|
||||
name = lib.mkOption { type = lib.types.str; };
|
||||
homeDirectory = lib.mkOption { type = lib.types.path; };
|
||||
name = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "nyx";
|
||||
};
|
||||
homeDirectory = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
default = /home/${config.name};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user