nixos/system/Vanguard.nix
Evie Litherland-Smith e0dea93832 Split swww files into daemon and dynamic wallpaper
Change wallpaper to the Citadel, use an animated version on Vanguard
only

Drop nix-ts-mode for Emacs (use regular nix-mode)
2025-01-02 16:14:26 +00:00

96 lines
2.3 KiB
Nix

{
config,
pkgs,
username,
...
}:
{
imports = [
./desktop.nix
./steam.nix
];
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/onedark.yaml";
home-manager.users.${username} = {
imports = [ ./home/swww/default.nix ];
home = {
stateVersion = "23.05";
packages = with pkgs; [
helvum
prusa-slicer
blender
freecad
openscad
kicad-small
wineWowPackages.waylandFull
winetricks
lutris
cartridges
prismlauncher
(retroarch.override {
cores = with libretro; [
mupen64plus
dolphin
mgba
citra
pcsx2
ppsspp
];
})
];
};
programs.obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins; [
wlrobs
obs-vkcapture
obs-pipewire-audio-capture
input-overlay
];
};
wayland.windowManager.hyprland.settings =
let
primary = "Microstep MSI G27CQ4 E2";
secondary = "Acer Technologies ED270R TJMEE0043W01";
in
{
monitor = [
"desc:${primary},2560x1440@144,1920x0,1.25,vrr,2"
"desc:${secondary},1920x1080@144,0x140,1.0,vrr,2"
];
workspace = [
"2, monitor:desc:${secondary}"
"3, monitor:desc:${secondary}"
"4, monitor:desc:${primary}"
"5, monitor:desc:${primary}"
"6, monitor:desc:${primary}"
"7, monitor:desc:${primary}"
];
exec-once = [
"sleep 2 && systemctl --user start swww-daemon.service && sleep 2 && swww img ${./wallpapers/animated/citadel.gif} && systemctl --user stop hyprpaper.service"
];
};
};
boot = {
kernel.sysctl = {
"vm.max_map_count" = 16777216;
"fs.file-max" = 524288;
};
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
extraModprobeConfig = ''
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
'';
};
hardware = {
amdgpu = {
initrd.enable = true;
opencl.enable = true;
};
graphics = {
enable = true;
enable32Bit = true;
};
};
services.hardware.openrgb.enable = true;
system.stateVersion = "23.05";
}