mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
modularized user
This commit is contained in:
parent
41c07d0fc1
commit
09fdfeed11
3 changed files with 25 additions and 10 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, lib, ... }:
|
||||
{ pkgs, lib, config, ... }:
|
||||
|
||||
{ system.stateVersion = "22.11";
|
||||
|
||||
|
|
@ -50,7 +50,15 @@
|
|||
};
|
||||
|
||||
# Users
|
||||
users.users = import ./user;
|
||||
users.users = {
|
||||
${config.user.name} = {
|
||||
isNormalUser = true;
|
||||
extraGroups = config.user.groups;
|
||||
openssh.authorizedKeys = lib.mkIf (config.user.name == "bryan") {
|
||||
keys = config.user.sshKeys;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
security.sudo = {
|
||||
wheelNeedsPassword = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue