niksos/hosts/hape/configuration.nix

106 lines
2.7 KiB
Nix
Raw Normal View History

2023-10-03 19:22:24 +02:00
{
config,
pkgs,
...
2024-07-15 23:18:25 +02:00
}: {
systemd.oomd = {
enable = true;
enableUserServices = true;
};
2023-10-03 19:22:24 +02:00
2024-07-15 23:18:25 +02:00
programs.dconf.enable = true;
2023-10-03 19:22:24 +02:00
2024-07-15 23:18:25 +02:00
security.sudo.package = pkgs.sudo.override { withInsults = true; };
2023-10-03 19:22:24 +02:00
2024-07-15 23:18:25 +02:00
programs.zsh.enable = true;
2023-10-03 19:22:24 +02:00
2024-07-15 23:18:25 +02:00
environment.sessionVariables = {
CHROME_EXECUTABLE = "${pkgs.ungoogled-chromium}/bin/chromium";
2023-10-03 19:22:24 +02:00
};
services = {
pcscd.enable = true;
udev.packages = [ pkgs.yubikey-personalization ];
udisks2.enable = true;
dbus.enable = true;
};
2024-07-15 23:18:25 +02:00
hardware.graphics = {
2023-10-03 19:22:24 +02:00
enable = true;
2024-07-15 23:18:25 +02:00
driSupport = true;
enable32Bit = true;
2023-10-03 19:22:24 +02:00
};
services.journald = {
extraConfig = ''
SystemMaxUse=100M
'';
};
2024-08-06 17:52:50 +02:00
poz = {
2024-07-15 23:18:25 +02:00
other.home-manager = {
enable = true;
enableDirenv = true;
};
programs = {
agenix.enable = true;
nh = let
2024-08-06 17:52:50 +02:00
inherit (config.poz.other.system) username;
2024-07-15 23:18:25 +02:00
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 hape";
us = "NIX_SSHOPTS='-t' nixos-rebuild switch --flake \"/home/jacek/niksos#chmura\" -L --use-remote-sudo --target-host chmura";
# TODO use this when nh supports it
#us = "NIX_SSHOPTS='-t' nh os switch -H chmura -- --store ssh-ng://chmura";
};
profiling = false;
};
zoxide.enable = true;
anyrun.enable = true;
btop.enable = true;
foot.enable = true;
mpv.enable = true;
neovim.enable = true;
zathura.enable = true;
hypr = {
land.enable = true;
lock.enable = true;
idle.enable = true;
};
quickshell = {
enable = true;
enabledConfigs = [
"powermenu"
"poz"
];
};
};
2023-10-13 21:04:24 +02:00
services = {
dunst.enable = true;
greetd = {
enable = true;
greeter = "gtkgreet";
launchOptions = [
"Hyprland"
"zsh"
"reboot"
"shutdown now"
];
};
mpd.enable = true;
pipewire.enable = true;
2023-10-13 21:04:24 +02:00
};
};
2023-10-03 19:22:24 +02:00
system.stateVersion = "23.11";
}