1
0

Set users default password

This commit is contained in:
dump_stack() 2019-07-21 14:22:27 +00:00
parent 0a9eacd1f3
commit b48edef789
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
2 changed files with 17 additions and 1 deletions

View File

@ -9,6 +9,12 @@
nix-env -iA nixos.gitMinimal nix-env -iA nixos.gitMinimal
git clone https://code.dumpstack.io/infra/localhost.git /mnt/etc/nixos/ git clone https://code.dumpstack.io/infra/localhost.git /mnt/etc/nixos/
cp wireless-networks.nix.example wireless-networks.nix
nano wireless-networks.nix
cp secrets.nix.example secrets.nix
nano secrets.nix
nix-channel --add https://nixos.org/channels/nixos-unstable unstable nix-channel --add https://nixos.org/channels/nixos-unstable unstable
nix-channel --update nix-channel --update
@ -16,3 +22,9 @@
nixos-install nixos-install
reboot reboot
## After install
Initial password for root is `root`, and for user is `user`.
Default network configuration is VPN-only, so if you don't have plans to use it you need to change iptables rules (remove `iptables -P OUTPUT DROP` from `networking.nix`) and remove `services.openvpn.servers.vpn` from `networking.nix`.

View File

@ -35,8 +35,12 @@ in {
} }
]; ];
users.users.root.shell = pkgs.zsh; users.users.root = {
initialPassword = "root";
shell = pkgs.zsh;
};
users.users.user = { users.users.user = {
initialPassword = "user";
isNormalUser = true; isNormalUser = true;
shell = pkgs.zsh; shell = pkgs.zsh;
extraGroups = [ "wheel" "audio" "libvirtd" ]; extraGroups = [ "wheel" "audio" "libvirtd" ];