Update mutability of users

This commit is contained in:
iFargle 2023-09-17 21:15:44 +09:00
parent 68ce6626d3
commit 0218f15fdb
3 changed files with 5 additions and 3 deletions

View file

@ -39,8 +39,8 @@
"albert@nixos-laptop" = libx.mkHome { hostname = "nixos-laptop"; desktop = "hyprland"; theme = "gruvbox"; };
"albert@nixos-framework" = libx.mkHome { hostname = "nixos-framework"; desktop = "hyprland"; theme = "gruvbox"; };
"albert@nixos-rpi4-01" = libx.mkHome { hostname = "nixos-rpi4-01"; platform = "aarch64-linux"; };
"albert@nixos-rpi4-02" = libx.mkHome { hostname = "nixos-rpi4-01"; platform = "aarch64-linux"; };
"albert@nixos-rpi4-03" = libx.mkHome { hostname = "nixos-rpi4-01"; platform = "aarch64-linux"; };
"albert@nixos-rpi4-02" = libx.mkHome { hostname = "nixos-rpi4-02"; platform = "aarch64-linux"; };
"albert@nixos-rpi4-03" = libx.mkHome { hostname = "nixos-rpi4-03"; platform = "aarch64-linux"; };
};
};
}

View file

@ -44,15 +44,16 @@
};
bashrcExtra = ''
sops-edit() {
nix-shell
nix-shell -p sops --run "sops $1"
}
sops-update() {
nix-shell
nix-shell -p sops --run "sops updatekeys $1"
}
nix-clean-all() {
sudo nix-channel --update
sudo nix-env -u --always
sudo nix-collect-garbage -d
}

View file

@ -4,6 +4,7 @@ let
in {
# Define a user account.
imports = [ ] ++ lib.optional (builtins.isString desktop) ./desktop.nix;
users.mutableUsers = false;
users.users.albert = {
isNormalUser = true;
description = "Albert J. Copeland";