niksos/hosts/niks/configuration.nix

140 lines
4 KiB
Nix
Raw Normal View History

2023-07-06 20:03:25 +02:00
{
2023-07-13 12:49:20 +02:00
config,
2024-04-03 22:02:42 +02:00
inputs,
lib,
2023-07-13 12:49:20 +02:00
pkgs,
...
}: let
2024-07-24 18:47:53 +02:00
inherit (lib.meta) getExe;
in {
2023-08-11 00:00:19 +02:00
boot = {
extraModulePackages = [
(config.boot.kernelPackages.ddcci-driver.overrideAttrs (o: {
patches = (o.patches or []) ++ [
(pkgs.fetchpatch {
url = "https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux/-/merge_requests/16.patch";
hash = "sha256-PapgP4cE2+d+YbNSEd6mQRvnumdiEfQpyR5f5Rs1YTs=";
})
];
}))
];
kernelModules = [ "ddcci" ];
2023-08-11 00:00:19 +02:00
};
2023-07-13 12:49:20 +02:00
nix.settings = {
max-jobs = 3;
cores = 4;
2023-09-08 16:10:15 +02:00
};
2023-07-06 20:03:25 +02:00
2024-05-03 18:20:56 +02:00
programs = {
kdeconnect.enable = true;
};
2023-10-03 19:22:24 +02:00
security.polkit.enable = true;
2023-07-13 12:49:20 +02:00
services = {
2023-07-23 20:12:12 +02:00
pcscd.enable = true;
udisks2.enable = true;
2023-10-13 21:04:24 +02:00
fwupd = {
enable = true;
};
2024-01-20 01:31:28 +01:00
ratbagd.enable = true;
smartd.enable = true;
flatpak.enable = true;
2023-07-23 20:12:12 +02:00
};
2023-10-13 21:04:24 +02:00
# this makes usb devices autosuspend
#powerManagement.powertop.enable = true;
2024-07-15 23:18:25 +02:00
poz = {
other = {
home-manager = {
enable = true;
enableDirenv = true;
};
networking.enable = true;
};
2023-10-13 21:04:24 +02:00
programs = {
agenix.enable = true;
2024-05-08 20:49:06 +02:00
nh = let
2024-07-15 23:18:25 +02:00
inherit (config.poz.other.system) username;
2024-05-08 20:49:06 +02:00
home = config.home-manager.users.${username}.home.homeDirectory;
in {
enable = true;
flake = "${home}/niksos";
};
2023-10-13 21:04:24 +02:00
starship.enable = true;
2023-11-25 17:12:09 +01:00
zsh = {
enable = true;
extraAliases = {
2024-05-08 21:12:27 +02:00
u = "nh os switch -H niks";
us = "NIX_SSHOPTS='-t' nixos-rebuild switch --flake \"/home/jacek/niksos#chmura\" -L --use-remote-sudo --target-host chmura";
2024-05-08 21:12:27 +02:00
# TODO use this when nh supports it
#us = "NIX_SSHOPTS='-t' nh os switch -H chmura -- --store ssh-ng://chmura";
2023-11-25 17:12:09 +01:00
};
profiling = false;
};
2024-04-25 20:20:24 +02:00
zoxide.enable = true;
2023-10-13 21:04:24 +02:00
anyrun.enable = true;
2024-01-20 01:27:49 +01:00
vesktop.enable = true;
2023-10-13 21:04:24 +02:00
btop.enable = true;
foot.enable = true;
2024-05-05 19:13:38 +02:00
mpv = {
enable = true;
gpu = "AMD Radeon RX 6800M (RADV NAVI22)";
};
neovim = {
enable = true;
enableLsp = true;
};
2023-10-13 21:04:24 +02:00
zathura.enable = true;
2024-03-19 23:45:26 +01:00
hypr = {
land = {
enable = true;
startupSound = ./mathis.m4a;
extraPlugins = [
inputs.split-monitor-workspaces.packages.${pkgs.system}.split-monitor-workspaces
];
2024-04-30 11:57:45 +02:00
extraSettings = {
exec = let
2024-08-05 19:00:16 +02:00
swww = getExe pkgs.swww;
2024-04-30 11:57:45 +02:00
in [
# wait a bit then set the wallpapers
"sleep 0.5 && ${swww} img -o eDP-1 ${./catppuccin-wall0.png}"
"sleep 0.5 && ${swww} img -o HDMI-A-1 ${./catppuccin-wall1.png}"
2024-04-30 11:57:45 +02:00
];
};
2024-03-19 23:45:26 +01:00
};
lock.enable = true;
2024-06-09 15:54:49 +02:00
idle.enable = true;
2023-11-25 17:12:09 +01:00
};
newsboat.enable = true;
2023-10-13 21:04:24 +02:00
};
services = {
dunst.enable = true;
mpd = {
enable = true;
musicDirectory = "/run/media/data/Music";
};
2023-10-13 21:04:24 +02:00
greetd = {
enable = true;
greeter = "gtkgreet";
launchOptions = [
"Hyprland"
"sway"
"zsh"
"reboot"
"shutdown now"
];
};
pipewire.enable = true;
syncthing.enable = true;
2023-10-13 21:04:24 +02:00
};
};
2023-07-13 15:11:17 +02:00
system.stateVersion = "23.11";
2023-07-06 20:03:25 +02:00
}