diff --git a/cafe/gitea.nix b/cafe/gitea.nix deleted file mode 100644 index c9b5101..0000000 --- a/cafe/gitea.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ config, pkgs, ... }: -{ - - services.gitea = { - enable = true; - appName = "My awesome Gitea server"; # Give the site a name - database = { - type = "sqlite3"; - }; - settings.server = { - DOMAIN = "localhost"; - ROOT_URL = "http://localhost/"; - HTTP_PORT = 3001; - }; - }; - - # [CONTAINER] - boot.isContainer = true; - - # [NETWORK] - networking.hostName = "gitea"; - networking.useDHCP = false; - networking.firewall.enable = true; - networking.firewall.allowedTCPPorts = [ 3001 ]; - networking.firewall.allowedUDPPorts = [ ]; - - system.stateVersion = "23.11"; -} diff --git a/cafe/host.nix b/cafe/host.nix deleted file mode 100644 index 95caa54..0000000 --- a/cafe/host.nix +++ /dev/null @@ -1,62 +0,0 @@ -{ pkgs, ... }: -let gitea = { - host = "10.10.0.1"; - local = "10.10.0.2"; - }; -in -{ - # [CONTAINERS] - containers.gitea = { - autoStart = true; - ephemeral = true; - privateNetwork = true; - hostAddress = gitea.host; - localAddress = gitea.local; - config = ./gitea.nix; - }; - - # [NGINX] - services.nginx = { - enable = true; - recommendedProxySettings = true; - virtualHosts = { - "localhost" = { - locations."/".proxyPass = "http://${gitea.local}:3001"; - }; - }; - }; - - # [NETWORK] - networking.firewall.allowedTCPPorts = [ 80 ]; - networking.firewall.allowedUDPPorts = [ ]; - - # VM test user - users.users.test.isSystemUser = true ; - users.users.test.initialPassword = "test"; - users.users.test.group = "test"; - users.groups.test = {}; - - console = { - useXkbConfig = true; - }; - - services.xserver = { - xkb = { - layout = "fox,sus"; - options = "ctrl:nocaps"; - extraLayouts.sus = { - description = "Swedish US"; - languages = [ "se" ]; - symbolsFile = ../shared/sus.xkb; - }; - extraLayouts.fox = { - description = "Layout suitable to be used by a fox"; - languages = [ "se" ]; - symbolsFile = ../shared/fox.xkb; - }; - }; - }; - - system.stateVersion = "23.11"; - -} diff --git a/flake.nix b/flake.nix index d2b4a65..39e8afe 100644 --- a/flake.nix +++ b/flake.nix @@ -67,19 +67,6 @@ ]; }; - nixosConfigurations.cafe = nixpkgs.lib.nixosSystem { - system = "x86_64-linux"; - modules = [ - nix-config-module - ./cafe/host.nix - ]; - - virtualisation.forwardPorts = [ - { from = "host"; host.port = 80; guest.port = 8080; } - ]; - - }; - keyboardLayouts.fox = ./shared/fox.xkb; fonts.sax2nf = import ./shared/sax2nf.nix { pkgs = nixpkgs.legacyPackages.x86_64-linux; };