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: {
|
outputs = { self, nixpkgs, nix-on-droid, home-manager, stylix, ... } @inputs: {
|
||||||
# Constant values.
|
# Constant values.
|
||||||
nixosModules.const = {
|
nixosModules.const = {
|
||||||
url = "git+https://git.voronind.com/voronind/nixos.git";
|
|
||||||
hashedPassword = "$y$j9T$oqCB16i5E2t1t/HAWaFd5.$tTaHtAcifXaDVpTcRv.yH2/eWKxKE9xM8KcqXHfHrD7"; # Use `mkpasswd`.
|
|
||||||
droidStateVersion = "22.11";
|
droidStateVersion = "22.11";
|
||||||
stateVersion = "23.11";
|
stateVersion = "23.11";
|
||||||
timeZone = "Europe/Moscow";
|
timeZone = "Europe/Moscow";
|
||||||
|
url = "git+https://git.voronind.com/voronind/nixos.git";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Common modules used across all hosts.
|
# Common modules used across all hosts.
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
|
hashedPassword = "$y$j9T$oqCB16i5E2t1t/HAWaFd5.$tTaHtAcifXaDVpTcRv.yH2/eWKxKE9xM8KcqXHfHrD7"; # Use `mkpasswd`.
|
||||||
|
|
||||||
ssh = {
|
ssh = {
|
||||||
trustedKeys = [
|
trustedKeys = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIL2LI1iFDZC223aWqBVz9yusfB/XrRwsBKiL5warIF/ nix-on-droid@phone"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIL2LI1iFDZC223aWqBVz9yusfB/XrRwsBKiL5warIF/ nix-on-droid@phone"
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{ const, ... }: {
|
{ secret, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./home/Root.nix
|
./home/Root.nix
|
||||||
];
|
];
|
||||||
users.users.root.hashedPassword = const.hashedPassword;
|
users.users.root.hashedPassword = secret.hashedPassword;
|
||||||
security.sudo = {
|
security.sudo = {
|
||||||
enable = false;
|
enable = false;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, lib, const, ... }: {
|
{ pkgs, lib, secret, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./home/Voronind.nix
|
./home/Voronind.nix
|
||||||
];
|
];
|
||||||
|
@ -6,7 +6,7 @@
|
||||||
users.users.voronind = {
|
users.users.voronind = {
|
||||||
createHome = true;
|
createHome = true;
|
||||||
description = "Dmitry Voronin";
|
description = "Dmitry Voronin";
|
||||||
hashedPassword = const.hashedPassword;
|
hashedPassword = secret.hashedPassword;
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
uid = 1000;
|
uid = 1000;
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
|
|
Loading…
Reference in a new issue