From 72abdd1cbc6d6fb5872e9e6ec2edf57009c9104d Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Tue, 26 Dec 2023 09:22:55 +0100 Subject: [PATCH] Usersettings --- default/default.nix | 1 + modules/usersettings.nix | 12 ++++++++++++ smol/default.nix | 1 + 3 files changed, 14 insertions(+) create mode 100644 modules/usersettings.nix 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 ]; }