fwminex gets dev environment

This commit is contained in:
Motiejus Jakštys 2023-10-09 22:07:42 +03:00
parent 69aaa337bf
commit b243b82c30
2 changed files with 6 additions and 1 deletions

View File

@ -52,6 +52,7 @@ in {
base = { base = {
zfs.enable = true; zfs.enable = true;
users = { users = {
devEnvironment = true;
passwd = { passwd = {
root.passwordFile = config.age.secrets.root-passwd-hash.path; root.passwordFile = config.age.secrets.root-passwd-hash.path;
motiejus.passwordFile = config.age.secrets.motiejus-passwd-hash.path; motiejus.passwordFile = config.age.secrets.motiejus-passwd-hash.path;

View File

@ -7,6 +7,10 @@
cfg = config.mj.base.users; cfg = config.mj.base.users;
in { in {
options.mj.base.users = with lib.types; { options.mj.base.users = with lib.types; {
devEnvironment = lib.mkOption {
type = bool;
default = false;
};
passwd = lib.mkOption { passwd = lib.mkOption {
type = attrsOf (submodule { type = attrsOf (submodule {
options = { options = {
@ -61,8 +65,8 @@ in {
inherit lib; inherit lib;
inherit pkgs; inherit pkgs;
inherit (config.mj) stateVersion; inherit (config.mj) stateVersion;
inherit (config.mj.base.users) devEnvironment;
email = "motiejus@jakstys.lt"; email = "motiejus@jakstys.lt";
devEnvironment = false;
}) })
{ {
programs.bash = { programs.bash = {