From b243b82c30a105d4068594d6246e7a866d2d9cc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 9 Oct 2023 22:07:42 +0300 Subject: [PATCH] fwminex gets dev environment --- hosts/fwminex/configuration.nix | 1 + modules/base/users/default.nix | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/fwminex/configuration.nix b/hosts/fwminex/configuration.nix index 1bcefd0..67829d0 100644 --- a/hosts/fwminex/configuration.nix +++ b/hosts/fwminex/configuration.nix @@ -52,6 +52,7 @@ in { base = { zfs.enable = true; users = { + devEnvironment = true; passwd = { root.passwordFile = config.age.secrets.root-passwd-hash.path; motiejus.passwordFile = config.age.secrets.motiejus-passwd-hash.path; diff --git a/modules/base/users/default.nix b/modules/base/users/default.nix index fc5e3f9..1c41933 100644 --- a/modules/base/users/default.nix +++ b/modules/base/users/default.nix @@ -7,6 +7,10 @@ cfg = config.mj.base.users; in { options.mj.base.users = with lib.types; { + devEnvironment = lib.mkOption { + type = bool; + default = false; + }; passwd = lib.mkOption { type = attrsOf (submodule { options = { @@ -61,8 +65,8 @@ in { inherit lib; inherit pkgs; inherit (config.mj) stateVersion; + inherit (config.mj.base.users) devEnvironment; email = "motiejus@jakstys.lt"; - devEnvironment = false; }) { programs.bash = {