Alejandra'd the configs
This commit is contained in:
parent
45ec1b2bdc
commit
cd0d39bdeb
2 changed files with 66 additions and 57 deletions
|
|
@ -195,10 +195,10 @@ in {
|
||||||
};
|
};
|
||||||
boot.initrd.availableKernelModules = ["virtio_pci" "virtio_scsi" "ahci" "sd_mod" "virtio_blk"];
|
boot.initrd.availableKernelModules = ["virtio_pci" "virtio_scsi" "ahci" "sd_mod" "virtio_blk"];
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/vda1";
|
device = "/dev/vda1";
|
||||||
fsType = "ext4"; # Use "btrfs" or "xfs" if you formatted it differently
|
fsType = "ext4"; # Use "btrfs" or "xfs" if you formatted it differently
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -59,12 +59,9 @@ in {
|
||||||
LC_TIME = "en_AU.UTF-8";
|
LC_TIME = "en_AU.UTF-8";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
# Enable Tailscale for secure remote access
|
# Enable Tailscale for secure remote access
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Enable Seatd for Wayland sessions (needed for sway/seat management)
|
# Enable Seatd for Wayland sessions (needed for sway/seat management)
|
||||||
services.seatd = {
|
services.seatd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -117,7 +114,6 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
# SSH Agent authentication
|
# SSH Agent authentication
|
||||||
security.pam.sshAgentAuth.enable = true;
|
security.pam.sshAgentAuth.enable = true;
|
||||||
|
|
||||||
|
|
@ -128,7 +124,6 @@ in {
|
||||||
allowReboot = false;
|
allowReboot = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
# Enable Traefik service
|
# Enable Traefik service
|
||||||
services.traefik = {
|
services.traefik = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -200,7 +195,7 @@ in {
|
||||||
http.services = {
|
http.services = {
|
||||||
forgejo.loadBalancer = {
|
forgejo.loadBalancer = {
|
||||||
servers = [
|
servers = [
|
||||||
{ url = "http://10.1.1.4:3000"; }
|
{url = "http://10.1.1.4:3000";}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -217,17 +212,16 @@ in {
|
||||||
dnsProvider = "cloudflare";
|
dnsProvider = "cloudflare";
|
||||||
environmentFile = "/home/traefikprg/cloudflare/cloudflare.env";
|
environmentFile = "/home/traefikprg/cloudflare/cloudflare.env";
|
||||||
# Reload traefik when certificate is renewed
|
# Reload traefik when certificate is renewed
|
||||||
reloadServices = [ "traefik.service" ];
|
reloadServices = ["traefik.service"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Ensure traefik service waits for ACME certificates
|
# Ensure traefik service waits for ACME certificates
|
||||||
systemd.services.traefik = {
|
systemd.services.traefik = {
|
||||||
after = [ "acme-finished-prg-radio.org.target" ];
|
after = ["acme-finished-prg-radio.org.target"];
|
||||||
wants = [ "acme-finished-prg-radio.org.target" ];
|
wants = ["acme-finished-prg-radio.org.target"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
# Add extra system packages from example.nix (appended to existing list)
|
# Add extra system packages from example.nix (appended to existing list)
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
wget
|
wget
|
||||||
|
|
@ -292,7 +286,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
# Home Manager user configuration for traefikprg (from example.nix)
|
# Home Manager user configuration for traefikprg (from example.nix)
|
||||||
home-manager.users.traefikprg = { pkgs, ... }: {
|
home-manager.users.traefikprg = {pkgs, ...}: {
|
||||||
home.packages = [
|
home.packages = [
|
||||||
pkgs.atool
|
pkgs.atool
|
||||||
pkgs.httpie
|
pkgs.httpie
|
||||||
|
|
@ -318,13 +312,28 @@ in {
|
||||||
settings = {
|
settings = {
|
||||||
window = {
|
window = {
|
||||||
opacity = 1.0;
|
opacity = 1.0;
|
||||||
padding = { x = 10; y = 10; };
|
padding = {
|
||||||
|
x = 10;
|
||||||
|
y = 10;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
font = {
|
font = {
|
||||||
normal = { family = "Maple Mono NF"; style = "Regular"; };
|
normal = {
|
||||||
bold = { family = "Maple Mono NF"; style = "Bold"; };
|
family = "Maple Mono NF";
|
||||||
italic = { family = "Maple Mono NF"; style = "Italic"; };
|
style = "Regular";
|
||||||
bold_italic = { family = "Maple Mono NF"; style = "Bold Italic"; };
|
};
|
||||||
|
bold = {
|
||||||
|
family = "Maple Mono NF";
|
||||||
|
style = "Bold";
|
||||||
|
};
|
||||||
|
italic = {
|
||||||
|
family = "Maple Mono NF";
|
||||||
|
style = "Italic";
|
||||||
|
};
|
||||||
|
bold_italic = {
|
||||||
|
family = "Maple Mono NF";
|
||||||
|
style = "Bold Italic";
|
||||||
|
};
|
||||||
size = 14.0;
|
size = 14.0;
|
||||||
};
|
};
|
||||||
colors = {
|
colors = {
|
||||||
|
|
@ -346,7 +355,7 @@ in {
|
||||||
logo_size = "small";
|
logo_size = "small";
|
||||||
pride_month_disable = false;
|
pride_month_disable = false;
|
||||||
pride_month_shown = [];
|
pride_month_shown = [];
|
||||||
color_align = { mode = "horizontal"; };
|
color_align = {mode = "horizontal";};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -367,8 +376,8 @@ in {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
networking.firewall.allowedTCPPorts = [80 443];
|
||||||
networking.firewall.allowedUDPPorts = [ 80 443 ];
|
networking.firewall.allowedUDPPorts = [80 443];
|
||||||
# Or disable the firewall altogether.
|
# Or disable the firewall altogether.
|
||||||
# networking.firewall.enable = false;
|
# networking.firewall.enable = false;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue