Add forgejo

This commit is contained in:
L0m1g 2025-09-15 18:20:53 +02:00
parent 4f411004e6
commit 6cf61cb4f5
7 changed files with 136 additions and 12 deletions

View file

@ -12,6 +12,7 @@
./hardware.nix
../../profiles/server-selfhosted.nix
../../modules/services/caddy.nix
../../modules/services/forgejo.nix
];
# Bootloader.
@ -32,7 +33,7 @@
users.users.lomig = {
isNormalUser = true;
extraGroups = ["networkmanager" "lp" "wheel"];
extraGroups = ["networkmanager" "lp" "wheel" "docker" ];
shell = pkgs.zsh;
};
@ -48,7 +49,6 @@
git
hugo
];
networking.firewall.allowedTCPPorts = [ 80 ];
system.stateVersion = "25.05"; # Did you read the comment?
}

View file

@ -24,6 +24,11 @@
options = [ "fmask=0077" "dmask=0077" ];
};
fileSystems."/srv" =
{ device = "/dev/disk/by-uuid/2ef442a9-0eab-4dc5-b17c-076e18a54873";
fsType = "btrfs";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/c3a69154-ead9-4fcc-a9b1-3b741a42ee97"; }
];