From f766d093e240df917cd425f83ff004095c888833 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 4 Feb 2021 18:26:52 +0100 Subject: [PATCH] configuration: users: disallow mutable users --- configuration.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 5ff6a02..f6c1b79 100644 --- a/configuration.nix +++ b/configuration.nix @@ -47,8 +47,10 @@ # Select internationalisation properties. i18n.defaultLocale = "en_US.UTF-8"; + users.mutableUsers = false; # I want it to be declarative. + # Define user accounts and passwords. - users.users.root.hashedPassword = lib.fileContents ./secrets/users/root/password.txt; + users.users.root.hashedPassword = lib.fileContents ./secrets/users/root/password.txt; users.users.ambroisie = { hashedPassword = lib.fileContents ./secrets/users/ambroisie/password.txt; description = "Bruno BELANYI";