From b48edef789712f3528de50e3e751c12e45983392 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sun, 21 Jul 2019 14:22:27 +0000 Subject: [PATCH] Set users default password --- README.md | 12 ++++++++++++ configuration.nix | 6 +++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 62fd31d..a99ee1a 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,12 @@ nix-env -iA nixos.gitMinimal 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 --update @@ -16,3 +22,9 @@ nixos-install 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`. diff --git a/configuration.nix b/configuration.nix index 4c5b7bd..f22a2db 100644 --- a/configuration.nix +++ b/configuration.nix @@ -35,8 +35,12 @@ in { } ]; - users.users.root.shell = pkgs.zsh; + users.users.root = { + initialPassword = "root"; + shell = pkgs.zsh; + }; users.users.user = { + initialPassword = "user"; isNormalUser = true; shell = pkgs.zsh; extraGroups = [ "wheel" "audio" "libvirtd" ];