126 lines
3 KiB
Nix
126 lines
3 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;
|
|
};
|
|
|
|
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 = {
|
|
nh = let
|
|
home = config.home-manager.users.${username}.home.homeDirectory;
|
|
in {
|
|
enable = true;
|
|
flake = "${home}/niksos";
|
|
};
|
|
zsh = {
|
|
enable = true;
|
|
extraAliases = {
|
|
u = "nh os switch -H ${inputs.work-secrets.hostname}";
|
|
};
|
|
profiling = false;
|
|
};
|
|
anyrun.enable = true;
|
|
foot.enable = true;
|
|
mpv.enable = true;
|
|
neovim = {
|
|
enable = true;
|
|
enableLsp = true;
|
|
};
|
|
zathura = {
|
|
enable = true;
|
|
themeFile = pkgs.fetchurl {
|
|
url = "https://raw.githubusercontent.com/catppuccin/zathura/main/src/catppuccin-mocha";
|
|
hash = "sha256-POxMpm77Pd0qywy/jYzZBXF/uAKHSQ0hwtXD4wl8S2Q=";
|
|
};
|
|
};
|
|
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";
|
|
}
|