refactor: break out user definitions and disable mutability. Also fix a couple evaluation warnings
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
{ config, ... }:
|
||||
{
|
||||
users = {
|
||||
mutableUsers = false;
|
||||
|
||||
users.frank = {
|
||||
isNormalUser = true;
|
||||
description = "Frank LoTurco";
|
||||
hashedPasswordFile = config.sops.secrets.password_hash.path;
|
||||
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -48,7 +48,6 @@
|
||||
|
||||
nix-flatpak = {
|
||||
url = "github:gmodena/nix-flatpak/?ref=latest";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
appimage-manager = {
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
../../features/i18n.nix
|
||||
../../features/sudo.nix
|
||||
../../features/sops.nix
|
||||
../../features/users.nix
|
||||
./nix-package-manager.nix
|
||||
];
|
||||
|
||||
@@ -169,20 +170,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
users.users.frank = {
|
||||
isNormalUser = true;
|
||||
description = "Frank LoTurco";
|
||||
hashedPassword = config.sops.secrets.password_hash.path;
|
||||
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
"input"
|
||||
"video"
|
||||
"uinput"
|
||||
];
|
||||
};
|
||||
|
||||
nixpkgs = {
|
||||
# Fix msitools compiling and failing it's test-suite.
|
||||
overlays = [
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
../../features/i18n.nix
|
||||
../../features/sudo.nix
|
||||
../../features/sops.nix
|
||||
../../features/users.nix
|
||||
./nix-package-manager.nix
|
||||
];
|
||||
|
||||
@@ -73,17 +74,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
users.users.frank = {
|
||||
isNormalUser = true;
|
||||
description = "Frank LoTurco";
|
||||
hashedPassword = config.sops.secrets.password_hash.path;
|
||||
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"libvirtd"
|
||||
];
|
||||
};
|
||||
|
||||
environment = {
|
||||
systemPackages =
|
||||
import ../../features/common-pkgs.nix { inherit pkgs; }
|
||||
|
||||
Reference in New Issue
Block a user