Flake : Move hashedPassword from const to secret.
This commit is contained in:
parent
ee475139e3
commit
e9b53f1417
|
@ -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.
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{ ... }: {
|
||||
hashedPassword = "$y$j9T$oqCB16i5E2t1t/HAWaFd5.$tTaHtAcifXaDVpTcRv.yH2/eWKxKE9xM8KcqXHfHrD7"; # Use `mkpasswd`.
|
||||
|
||||
ssh = {
|
||||
trustedKeys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIL2LI1iFDZC223aWqBVz9yusfB/XrRwsBKiL5warIF/ nix-on-droid@phone"
|
||||
|
|
|
@ -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 = ''
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue