From fbbc54328b6dd9a720bf680cc7eea85bb6005c38 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Tue, 9 Apr 2024 01:52:57 +0200 Subject: [PATCH] gitea: add theming module --- flake.lock | 21 +++++++++++++++++++++ flake.nix | 7 +++++++ hosts/bekkalokk/services/gitea/default.nix | 2 ++ 3 files changed, 30 insertions(+) diff --git a/flake.lock b/flake.lock index 1b6860c..c93b823 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": 1710248792, @@ -152,6 +172,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 f115dd5..a54fa53 100644 --- a/flake.nix +++ b/flake.nix @@ -17,6 +17,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"; @@ -83,6 +86,10 @@ mediawiki-extensions = final.callPackage ./packages/mediawiki-extensions { }; simplesamlphp = final.callPackage ./packages/simplesamlphp { }; }) + inputs.nix-gitea-themes.overlays.default + ]; + modules = [ + inputs.nix-gitea-themes.nixosModules.default ]; }; bob = stableNixosConfig "bob" { 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}" = {