niksos/hosts/work/configuration.nix

127 lines
3 KiB
Nix
Raw Normal View History

2024-08-28 22:21:15 +02:00
{
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} = {
2024-09-01 23:18:07 +02:00
extraGroups = [ "docker" ];
2024-08-28 22:21:15 +02:00
};
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;
};
2024-10-02 18:23:22 +02:00
zathura = {
enable = true;
themeFile = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/catppuccin/zathura/main/src/catppuccin-mocha";
hash = "sha256-POxMpm77Pd0qywy/jYzZBXF/uAKHSQ0hwtXD4wl8S2Q=";
};
};
2024-08-28 22:21:15 +02:00
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";
}