niksos/hosts/hape/configuration.nix

84 lines
2.4 KiB
Nix

{
config,
pkgs,
...
}: {
services = {
pcscd.enable = true;
udisks2.enable = true;
};
poz = {
other = {
home-manager = {
enable = true;
enableDirenv = true;
};
networking.enable = true;
};
programs = {
nh = let
inherit (config.poz.other.system) username;
home = config.home-manager.users.${username}.home.homeDirectory;
in {
enable = true;
flake = "${home}/niksos";
};
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;
};
anyrun.enable = true;
foot.enable = true;
mpv.enable = true;
neovim.enable = 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;
lock.enable = true;
idle.enable = true;
};
quickshell = {
enable = true;
enabledConfigs = [
"powermenu"
"poz"
];
};
};
services = {
dunst.enable = true;
greetd = {
enable = true;
greeter = "gtkgreet";
launchOptions = [
"Hyprland"
"zsh"
"reboot"
"shutdown now"
];
};
mpd.enable = false;
pipewire.enable = true;
ssh = {
agent.enable = true;
daemon.enable = false;
};
};
};
system.stateVersion = "23.11";
}