organized, fixed wireguard config

This commit is contained in:
Parker TenBroeck 2026-05-23 11:13:59 -04:00
parent 1be91dfd0c
commit 079b1eb5d6
12 changed files with 139 additions and 70 deletions

12
hosts/common.nix Normal file
View file

@ -0,0 +1,12 @@
{
imports = [
../modules/agenix.nix
../modules/home-manager.nix
../modules/locale.nix
../modules/shell
../modules/users/may.nix
../modules/ssh.nix
../modules/git.nix
../modules/cli.nix
];
}

39
hosts/desktop.nix Normal file
View file

@ -0,0 +1,39 @@
{ 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 = "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";
}

20
hosts/laptop.nix Normal file
View file

@ -0,0 +1,20 @@
{
imports = [
./common.nix
../modules/networking.nix
../modules/bluetooth.nix
../modules/games/steam.nix
../modules/games/minecraft.nix
../modules/fonts.nix
../modules/packages.nix
../modules/hyprland
../modules/tex.nix
];
nixpkgs.config.allowUnfree = true;
networking.hostName = "laptop";
system.stateVersion = "23.11";
home-manager.users.may.home.stateVersion = "25.11";
}

17
hosts/work.nix Normal file
View file

@ -0,0 +1,17 @@
{
imports = [
./common.nix
../modules/networking.nix
../modules/bluetooth.nix
../modules/fonts.nix
../modules/packages.nix
../modules/hyprland
];
nixpkgs.config.allowUnfree = true;
networking.hostName = "work";
system.stateVersion = "23.11";
home-manager.users.may.home.stateVersion = "25.11";
}