Flake : Move hashedPassword from const to secret.

This commit is contained in:
Dmitry Voronin 2024-04-14 19:30:03 +03:00
parent ee475139e3
commit e9b53f1417
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
4 changed files with 7 additions and 6 deletions

View file

@ -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.

View file

@ -1,4 +1,6 @@
{ ... }: {
hashedPassword = "$y$j9T$oqCB16i5E2t1t/HAWaFd5.$tTaHtAcifXaDVpTcRv.yH2/eWKxKE9xM8KcqXHfHrD7"; # Use `mkpasswd`.
ssh = {
trustedKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIL2LI1iFDZC223aWqBVz9yusfB/XrRwsBKiL5warIF/ nix-on-droid@phone"

View file

@ -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 = ''

View file

@ -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 = [