forked from M-Labs/defenestrate
fix root password auto setting
This commit is contained in:
parent
97fe25836b
commit
4f4f49a217
2
README
2
README
@ -12,7 +12,7 @@ mount /dev/disk/by-label/boot /mnt/boot
|
|||||||
nixos-generate-config --root /mnt
|
nixos-generate-config --root /mnt
|
||||||
# copy configuration to /mnt/etc/nixos
|
# copy configuration to /mnt/etc/nixos
|
||||||
nix-env -iA nixos.git
|
nix-env -iA nixos.git
|
||||||
nixos-install --flake /mnt/etc/nixos#artiq
|
nixos-install --no-root-password --flake /mnt/etc/nixos#artiq
|
||||||
reboot
|
reboot
|
||||||
# run memtest86
|
# run memtest86
|
||||||
|
|
||||||
|
@ -98,8 +98,8 @@
|
|||||||
programs.command-not-found.enable = false; # broken with flakes, https://github.com/NixOS/nixpkgs/issues/39789
|
programs.command-not-found.enable = false; # broken with flakes, https://github.com/NixOS/nixpkgs/issues/39789
|
||||||
users.mutableUsers = true;
|
users.mutableUsers = true;
|
||||||
users.defaultUserShell = pkgs.fish;
|
users.defaultUserShell = pkgs.fish;
|
||||||
|
users.users.root.initialPassword = "rabi";
|
||||||
users.extraGroups.plugdev = { };
|
users.extraGroups.plugdev = { };
|
||||||
users.extraUsers.root.initialPassword = "rabi";
|
|
||||||
users.extraUsers.rabi = {
|
users.extraUsers.rabi = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = ["networkmanager" "wheel" "plugdev" "dialout" "wireshark"];
|
extraGroups = ["networkmanager" "wheel" "plugdev" "dialout" "wireshark"];
|
||||||
|
Loading…
Reference in New Issue
Block a user