50 lines
925 B
Nix
50 lines
925 B
Nix
{
|
|
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"];
|
|
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";
|
|
}
|