some helix changes but mainly removing a user

This commit is contained in:
cnst
2024-09-04 15:35:27 +02:00
parent fcbd868789
commit 52e3b73c6d
23 changed files with 421 additions and 179 deletions

50
hosts/cnixpad/default.nix Normal file
View File

@@ -0,0 +1,50 @@
{
lib,
config,
pkgs,
...
}: let
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
in {
users.users.cnst = {
isNormalUser = true;
shell = pkgs.zsh;
# openssh.authorizedKeys.keys = [];
extraGroups = ifTheyExist [
"wheel"
"networkmanager"
"audio"
"video"
"git"
"mysql"
"docker"
"libvirtd"
"qemu-libvirtd"
"kvm"
"network"
"gamemode"
"adbusers"
"rtkit"
"users"
"plocate"
];
};
imports = [
./hardware-configuration.nix
./modules.nix
];
boot = {
consoleLogLevel = 3;
kernelPackages = lib.mkForce pkgs.linuxPackages_cachyos;
kernelParams = [
"amd_pstate=active"
"quiet"
"splash"
];
};
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = lib.mkDefault "23.11";
}