feat: NixOS | set user initial password and format file
This commit is contained in:
@@ -1,13 +1,16 @@
|
|||||||
# Edit this configuration file to define what should be installed on
|
# Edit this configuration file to define what should be installed on
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ config, lib, inputs, pkgs, hostname, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
secretspath = builtins.toString inputs.nix-secrets;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
hostname,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
secretspath = builtins.toString inputs.nix-secrets;
|
||||||
|
in {
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot = {
|
boot = {
|
||||||
loader = {
|
loader = {
|
||||||
@@ -126,6 +129,7 @@ in
|
|||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Shahab Dogar";
|
description = "Shahab Dogar";
|
||||||
extraGroups = ["networkmanager" "wheel" "input" "libvirtd"];
|
extraGroups = ["networkmanager" "wheel" "input" "libvirtd"];
|
||||||
|
initialHashedPassword = "$y$j9T$jSC0CJxh6O.Q3TEOVZR8l.$7kFf9u4Lh.aIH6o/15wFLW7OKPzoUEpWVN5B9wHEaw4";
|
||||||
hashedPasswordFile = config.sops.secrets."user_passwords/shahab".path;
|
hashedPasswordFile = config.sops.secrets."user_passwords/shahab".path;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user