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
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# 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.
|
||||
boot = {
|
||||
loader = {
|
||||
@@ -126,6 +129,7 @@ in
|
||||
isNormalUser = true;
|
||||
description = "Shahab Dogar";
|
||||
extraGroups = ["networkmanager" "wheel" "input" "libvirtd"];
|
||||
initialHashedPassword = "$y$j9T$jSC0CJxh6O.Q3TEOVZR8l.$7kFf9u4Lh.aIH6o/15wFLW7OKPzoUEpWVN5B9wHEaw4";
|
||||
hashedPasswordFile = config.sops.secrets."user_passwords/shahab".path;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user