!BgJZHVOYkwVcEKLAyM:nixos.org

NixOS Deployments

1216 Members
NixOS Deployment tooling285 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
27 Jun 2025
@dramosac:matrix.orgDaniel Ramos joined the room.18:33:15
@dramosac:matrix.orgDaniel Ramos

Hello folks šŸ‘‹

I’m trying to deploy user passwords declaratively with sops-nix, but before moving to sops-nix, I’d like to at least manage user passwords declaratively in a basic way.

I started with something like:

users.users.cris = {
  isNormalUser = true;
  password = "changeme";
};

I can SSH into the machine and then su cris using the "changeme" password without issues.

Later, I change it to:

users.users.cris = {
  isNormalUser = true;
  password = "somethingelse";
};

I deploy using deploy-rs, but when I SSH into the machine and run su cris, the password remains the old "changeme", not the new "somethingelse".

Why does this happen? Is this expected behavior in NixOS? Where does this behavior come from?
Thanks in advance!

18:39:01
@emilazy:matrix.orgemilydo you have mutableUsers on?18:45:29
@emilazy:matrix.orgemilyby default the password options only set initial password, it's evil and you should turn it off18:45:47
@dramosac:matrix.orgDaniel RamosI think It might be that! I dont' have configured neither mutableUsers = true or false. Where is this config living? under <??>.mutableUsers? Sorry I'm a nix newbie šŸ˜…19:03:42
@dramosac:matrix.orgDaniel Ramos * I think It might be that! I dont' have configured neither mutableUsers = true or false, so I think it has to be retrieving the default config. Where is this config living? under <??>.mutableUsers? Sorry I'm a nix newbie šŸ˜… 19:04:04

Show newer messages


Back to Room ListRoom Version: 6