125 lines
2.9 KiB
Nix
125 lines
2.9 KiB
Nix
{
|
|
config,
|
|
inputs,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (config.poz.other.system) username;
|
|
in {
|
|
nix.settings = {
|
|
max-jobs = 2;
|
|
cores = 3;
|
|
};
|
|
|
|
# swapDevices = [
|
|
# {
|
|
# device = "/var/lib/swapfile";
|
|
# size = 48 * 1024;
|
|
# }
|
|
# ];
|
|
|
|
programs = {
|
|
kdeconnect.enable = true;
|
|
noisetorch.enable = true;
|
|
};
|
|
|
|
security.polkit.enable = true;
|
|
|
|
users.users.${username} = {
|
|
extraGroups = [ "docker" ];
|
|
};
|
|
|
|
services = {
|
|
pcscd.enable = true;
|
|
|
|
udisks2.enable = true;
|
|
dbus.enable = true;
|
|
|
|
fwupd = {
|
|
enable = true;
|
|
};
|
|
|
|
smartd.enable = true;
|
|
};
|
|
|
|
networking.proxy = {
|
|
inherit (inputs.work-secrets.proxy) default noProxy;
|
|
};
|
|
|
|
# for vpn-slice
|
|
environment.etc.hosts.mode = "0644";
|
|
|
|
poz = {
|
|
other = {
|
|
home-manager = {
|
|
enable = true;
|
|
enableDirenv = true;
|
|
};
|
|
networking = {
|
|
enable = true;
|
|
plugins = [ pkgs.networkmanager-openconnect ];
|
|
};
|
|
};
|
|
programs = {
|
|
agenix.enable = true;
|
|
nh = let
|
|
home = config.home-manager.users.${username}.home.homeDirectory;
|
|
in {
|
|
enable = true;
|
|
flake = "${home}/niksos";
|
|
};
|
|
starship.enable = true;
|
|
zsh = {
|
|
enable = true;
|
|
extraAliases = {
|
|
u = "nh os switch -H ${inputs.work-secrets.hostname}";
|
|
};
|
|
profiling = false;
|
|
};
|
|
zoxide.enable = true;
|
|
anyrun.enable = true;
|
|
btop.enable = true;
|
|
foot.enable = true;
|
|
mpv.enable = true;
|
|
neovim = {
|
|
enable = true;
|
|
enableLsp = true;
|
|
};
|
|
zathura.enable = true;
|
|
hypr = {
|
|
land = {
|
|
enable = true;
|
|
extraPlugins = [
|
|
inputs.split-monitor-workspaces.packages.${pkgs.system}.split-monitor-workspaces
|
|
];
|
|
};
|
|
lock.enable = true;
|
|
idle.enable = true;
|
|
};
|
|
quickshell = {
|
|
enable = true;
|
|
enabledConfigs = [
|
|
"powermenu"
|
|
"poz"
|
|
];
|
|
};
|
|
};
|
|
services = {
|
|
dunst.enable = true;
|
|
greetd = {
|
|
enable = true;
|
|
greeter = "gtkgreet";
|
|
launchOptions = [
|
|
"Hyprland"
|
|
"sway"
|
|
"zsh"
|
|
"reboot"
|
|
"shutdown now"
|
|
];
|
|
};
|
|
pipewire.enable = true;
|
|
};
|
|
};
|
|
|
|
system.stateVersion = "23.11";
|
|
}
|