diff --git a/default/default.nix b/default/default.nix index caf59d7..19c28d0 100644 --- a/default/default.nix +++ b/default/default.nix @@ -8,5 +8,6 @@ ../modules/vim.nix ../modules/xconfig.nix ../modules/zsh.nix + ../modules/usersettings.nix ]; } diff --git a/modules/usersettings.nix b/modules/usersettings.nix new file mode 100644 index 0000000..c879872 --- /dev/null +++ b/modules/usersettings.nix @@ -0,0 +1,12 @@ +{ config, lib, ... }: +with lib; +let cfg = config.voidcruiser.userSettings; +in { + options.voidcruiser.userSettings = { + mutableUsers = mkEnableOption "Enables immutable users"; + }; + + config = { + users.mutableUsers = cfg.mutableUsers; + }; +} diff --git a/smol/default.nix b/smol/default.nix index 9ac49c0..d0f2119 100644 --- a/smol/default.nix +++ b/smol/default.nix @@ -4,5 +4,6 @@ ../modules/vim.nix ../modules/zsh.nix ../modules/audio.nix + ../modules/usersettings.nix ]; }