dotfiles/desktop.nix
Parker TenBroeck 0a62ab530d initial
2026-05-22 22:12:31 -04:00

39 lines
1.1 KiB
Nix

{ lib, ... }:
{
imports = [
./common.nix
./modules/networking.nix
./modules/bluetooth.nix
./modules/amd.nix
./modules/games/steam.nix
./modules/games/minecraft.nix
./modules/fonts.nix
./modules/packages.nix
./modules/wireguard-server.nix
./modules/hyprland
./modules/tex.nix
];
nixpkgs.config.allowUnfree = true;
networking.hostName = "nixos-desktop";
networking.firewall.allowedTCPPorts = [ 51820 25565 42069 8000 8080 ];
home-manager.users.may.wayland.windowManager.hyprland.settings = {
workspace = [
"1, monitor:DP-2, default:true"
"9, monitor:DP-1, default:true"
"10, monitor:HDMI-A-1, default:true"
];
exec-once = lib.mkAfter [
# Give Hyprland a moment to finish bringing up the desktop before
# placing startup apps onto monitor-pinned workspaces.
"sh -c 'sleep 2; hyprctl dispatch exec \"[workspace 9 silent] firefox\"; hyprctl dispatch exec \"[workspace 1 silent] alacritty\"'"
];
};
system.stateVersion = "23.11";
home-manager.users.may.home.stateVersion = "25.11";
}