diff --git a/flake.lock b/flake.lock index 1b25c8f..0d02e55 100644 --- a/flake.lock +++ b/flake.lock @@ -80,6 +80,26 @@ "type": "github" } }, + "nix-gitea-themes": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1712620227, + "narHash": "sha256-+NzOUQ2N/g29365iTmllsPGK15jcFlo4WrxxYGmJqFA=", + "ref": "refs/heads/main", + "rev": "d4a5263cfa4f43a460dce59d50094f5321ed531e", + "revCount": 4, + "type": "git", + "url": "https://git.pvv.ntnu.no/oysteikt/nix-gitea-themes.git" + }, + "original": { + "type": "git", + "url": "https://git.pvv.ntnu.no/oysteikt/nix-gitea-themes.git" + } + }, "nixpkgs": { "locked": { "lastModified": 1712386448, @@ -172,6 +192,7 @@ "grzegorz": "grzegorz", "grzegorz-clients": "grzegorz-clients", "matrix-next": "matrix-next", + "nix-gitea-themes": "nix-gitea-themes", "nixpkgs": "nixpkgs", "nixpkgs-unstable": "nixpkgs-unstable", "pvv-calendar-bot": "pvv-calendar-bot", diff --git a/flake.nix b/flake.nix index 07cbefb..e2d0bea 100644 --- a/flake.nix +++ b/flake.nix @@ -20,6 +20,9 @@ matrix-next.url = "github:dali99/nixos-matrix-modules"; matrix-next.inputs.nixpkgs.follows = "nixpkgs"; + nix-gitea-themes.url = "git+https://git.pvv.ntnu.no/oysteikt/nix-gitea-themes.git"; + nix-gitea-themes.inputs.nixpkgs.follows = "nixpkgs"; + grzegorz.url = "github:Programvareverkstedet/grzegorz"; grzegorz.inputs.nixpkgs.follows = "nixpkgs-unstable"; grzegorz-clients.url = "github:Programvareverkstedet/grzegorz-clients"; @@ -86,9 +89,11 @@ mediawiki-extensions = final.callPackage ./packages/mediawiki-extensions { }; simplesamlphp = final.callPackage ./packages/simplesamlphp { }; }) + inputs.nix-gitea-themes.overlays.default inputs.pvv-nettsiden.overlays.default ]; modules = [ + inputs.nix-gitea-themes.nixosModules.default inputs.pvv-nettsiden.nixosModules.default ]; }; diff --git a/hosts/bekkalokk/services/gitea/default.nix b/hosts/bekkalokk/services/gitea/default.nix index 288b27a..e79f30b 100644 --- a/hosts/bekkalokk/services/gitea/default.nix +++ b/hosts/bekkalokk/services/gitea/default.nix @@ -52,6 +52,8 @@ in { }; }; + services.gitea-themes.monokai = pkgs.gitea-theme-monokai; + environment.systemPackages = [ cfg.package ]; services.nginx.virtualHosts."${domain}" = {