nixos-config: add live MMC system and extract commons
This commit is contained in:
parent
68ca11e4db
commit
f75ab8d271
15 changed files with 771 additions and 40 deletions
20
nixos-configuration/common/user/steveej.nix
Normal file
20
nixos-configuration/common/user/steveej.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ config
|
||||
, pkgs
|
||||
, ... }:
|
||||
|
||||
let
|
||||
passwords = import ../passwords.crypt.nix;
|
||||
keys = import ../keys.nix;
|
||||
inherit (import ../lib) mkUser;
|
||||
in {
|
||||
users.mutableUsers = false;
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
|
||||
users.extraUsers.steveej = mkUser {
|
||||
uid = 1000;
|
||||
hashedPassword = passwords.users.steveej;
|
||||
};
|
||||
|
||||
security.pam.enableU2F = true;
|
||||
security.pam.services.steveej.u2fAuth = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue