diff --git a/flake.nix b/flake.nix index 6626333..e928447 100644 --- a/flake.nix +++ b/flake.nix @@ -101,11 +101,10 @@ outputs = { self, nixpkgs, nix-on-droid, home-manager, stylix, ... } @inputs: { # Constant values. nixosModules.const = { - url = "git+https://git.voronind.com/voronind/nixos.git"; - hashedPassword = "$y$j9T$oqCB16i5E2t1t/HAWaFd5.$tTaHtAcifXaDVpTcRv.yH2/eWKxKE9xM8KcqXHfHrD7"; # Use `mkpasswd`. droidStateVersion = "22.11"; stateVersion = "23.11"; timeZone = "Europe/Moscow"; + url = "git+https://git.voronind.com/voronind/nixos.git"; }; # Common modules used across all hosts. diff --git a/part/Secret.nix b/part/Secret.nix index 5112737..46b5b97 100644 --- a/part/Secret.nix +++ b/part/Secret.nix @@ -1,4 +1,6 @@ { ... }: { + hashedPassword = "$y$j9T$oqCB16i5E2t1t/HAWaFd5.$tTaHtAcifXaDVpTcRv.yH2/eWKxKE9xM8KcqXHfHrD7"; # Use `mkpasswd`. + ssh = { trustedKeys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIL2LI1iFDZC223aWqBVz9yusfB/XrRwsBKiL5warIF/ nix-on-droid@phone" diff --git a/user/Root.nix b/user/Root.nix index 84ea741..dde7277 100644 --- a/user/Root.nix +++ b/user/Root.nix @@ -1,8 +1,8 @@ -{ const, ... }: { +{ secret, ... }: { imports = [ ./home/Root.nix ]; - users.users.root.hashedPassword = const.hashedPassword; + users.users.root.hashedPassword = secret.hashedPassword; security.sudo = { enable = false; extraConfig = '' diff --git a/user/Voronind.nix b/user/Voronind.nix index 2d49227..5d7a925 100644 --- a/user/Voronind.nix +++ b/user/Voronind.nix @@ -1,4 +1,4 @@ -{ pkgs, lib, const, ... }: { +{ pkgs, lib, secret, ... }: { imports = [ ./home/Voronind.nix ]; @@ -6,7 +6,7 @@ users.users.voronind = { createHome = true; description = "Dmitry Voronin"; - hashedPassword = const.hashedPassword; + hashedPassword = secret.hashedPassword; isNormalUser = true; uid = 1000; extraGroups = [