1
0
Fork 0

fix root password auto setting

This commit is contained in:
Sebastien Bourdeauducq 2023-01-05 11:42:14 +08:00
parent 97fe25836b
commit 4f4f49a217
2 changed files with 2 additions and 2 deletions

2
README
View File

@ -12,7 +12,7 @@ mount /dev/disk/by-label/boot /mnt/boot
nixos-generate-config --root /mnt
# copy configuration to /mnt/etc/nixos
nix-env -iA nixos.git
nixos-install --flake /mnt/etc/nixos#artiq
nixos-install --no-root-password --flake /mnt/etc/nixos#artiq
reboot
# run memtest86

View File

@ -98,8 +98,8 @@
programs.command-not-found.enable = false; # broken with flakes, https://github.com/NixOS/nixpkgs/issues/39789
users.mutableUsers = true;
users.defaultUserShell = pkgs.fish;
users.users.root.initialPassword = "rabi";
users.extraGroups.plugdev = { };
users.extraUsers.root.initialPassword = "rabi";
users.extraUsers.rabi = {
isNormalUser = true;
extraGroups = ["networkmanager" "wheel" "plugdev" "dialout" "wireshark"];