mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-28 20:17:12 +08:00
isNormalUser: make overridable
This commit is contained in:
parent
e33a3bc4ff
commit
638712f997
2 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# Configuration common to all Linux systems
|
||||
{ flake, ... }:
|
||||
{ flake, lib, ... }:
|
||||
|
||||
let
|
||||
inherit (flake) config inputs;
|
||||
|
|
@ -8,7 +8,7 @@ in
|
|||
{
|
||||
imports = [
|
||||
{
|
||||
users.users.${config.me.username}.isNormalUser = true;
|
||||
users.users.${config.me.username}.isNormalUser = lib.mkDefault true;
|
||||
home-manager.users.${config.me.username} = { };
|
||||
home-manager.sharedModules = [
|
||||
self.homeModules.default
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
openssh.authorizedKeys.keys = myKeys;
|
||||
shell = pkgs.zsh;
|
||||
} // lib.optionalAttrs pkgs.stdenv.isLinux {
|
||||
isNormalUser = true;
|
||||
isNormalUser = lib.mkDefault true;
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue