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 = {
|
nix-flatpak = {
|
||||||
url = "github:gmodena/nix-flatpak/?ref=latest";
|
url = "github:gmodena/nix-flatpak/?ref=latest";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
appimage-manager = {
|
appimage-manager = {
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
../../features/i18n.nix
|
../../features/i18n.nix
|
||||||
../../features/sudo.nix
|
../../features/sudo.nix
|
||||||
../../features/sops.nix
|
../../features/sops.nix
|
||||||
|
../../features/users.nix
|
||||||
./nix-package-manager.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 = {
|
nixpkgs = {
|
||||||
# Fix msitools compiling and failing it's test-suite.
|
# Fix msitools compiling and failing it's test-suite.
|
||||||
overlays = [
|
overlays = [
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
../../features/i18n.nix
|
../../features/i18n.nix
|
||||||
../../features/sudo.nix
|
../../features/sudo.nix
|
||||||
../../features/sops.nix
|
../../features/sops.nix
|
||||||
|
../../features/users.nix
|
||||||
./nix-package-manager.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 = {
|
environment = {
|
||||||
systemPackages =
|
systemPackages =
|
||||||
import ../../features/common-pkgs.nix { inherit pkgs; }
|
import ../../features/common-pkgs.nix { inherit pkgs; }
|
||||||
|
|||||||
Reference in New Issue
Block a user