big restruct

This commit is contained in:
cnst
2024-08-02 21:27:09 +02:00
parent c65a8ac71d
commit f99d9fe4e5
364 changed files with 95 additions and 84 deletions

52
hosts/toothpc/default.nix Normal file
View File

@@ -0,0 +1,52 @@
{
lib,
config,
pkgs,
...
}: let
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
in {
users.users.toothpick = {
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
];
boot = {
blacklistedKernelModules = [
"ucsi_ccg"
"i2c_nvidia_gpu"
];
consoleLogLevel = 3;
kernelPackages = lib.mkForce pkgs.linuxPackages_cachyos;
kernelParams = [
"quiet"
"splash"
];
};
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = lib.mkDefault "23.11";
}