Changes
5 changed files (+94/-114)
-
-
@@ -236,6 +236,26 @@"type": "github" } }, "legit": { "inputs": { "nixpkgs": [ "nixpkgs" ] }, "locked": { "lastModified": 1784426398, "narHash": "sha256-UcUmPxpu0iQVoeBSeQ8DxmbscJkUKlUzc8PIfvtRL0I=", "ref": "refs/heads/master", "rev": "9a21725e2b755c246fd61bc277e7331f3476452d", "revCount": 242, "type": "git", "url": "https://tangled.org/pocka.jp/legit" }, "original": { "type": "git", "url": "https://tangled.org/pocka.jp/legit" } }, "mac-app-util": { "inputs": { "cl-nix-lite": "cl-nix-lite",
-
@@ -370,6 +390,7 @@"agenix": "agenix", "disko": "disko", "home-manager": "home-manager_2", "legit": "legit", "mac-app-util": "mac-app-util", "nix-colorizer": "nix-colorizer", "nixgl": "nixgl",
-
-
-
@@ -55,6 +55,11 @@timetracker = { url = "git+https://codeberg.org/pocka/timetracker.git"; }; legit = { url = "git+https://tangled.org/pocka.jp/legit"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs =
-
@@ -69,6 +74,7 @@nix-colorizer, plac, timetracker, legit, }: let availableSystems = [
-
@@ -77,7 +83,6 @@]; overlays = [ (import ./overlays/legit.nix) (import ./overlays/atkinson-hyperlegible-next.nix) ]; in
-
@@ -101,6 +106,7 @@nixgl plac timetracker legit ; }; };
-
@@ -156,6 +162,7 @@nix-colorizer plac timetracker legit ; }; };
-
-
-
@@ -22,100 +22,71 @@config, lib, pkgs, legit, ... }: let cfg = config.services.legit; package = if cfg.package != null then cfg.package else pkgs.legit-web; in { imports = [ ./soft-serve.nix ]; options = { services.legit = { package = lib.mkOption { type = lib.types.nullOr lib.types.package; default = null; }; port = lib.mkOption { type = lib.types.ints.unsigned; default = 5555; }; domain = lib.mkOption { type = lib.types.str; default = "git.pocka.jp"; }; }; }; imports = [ ./soft-serve.nix legit.homeManagerModules.default ]; config = { home.packages = [ package ]; xdg.configFile."legit/config.yaml" = { text = '' repo: scanPath: "${config.xdg.dataHome}/soft-serve/repos/x" readme: - "README" - "README.md" - "README.adoc" - "README.txt" - "ABOUT" - "ABOUT.md" - "ABOUT.adoc" - "ABOUT.txt" mainBranch: - "trunk" - "master" - "main" dirs: templates: "${package}/lib/legit/templates" static: "${package}/lib/legit/static" meta: title: "git.pocka.jp" description: "My personal projects" syntaxHighlight: true ui: footer: links: - text: Contact href: mailto:pockawoooh@gmail.com - text: Codeberg href: https://codeberg.org/pocka - text: Tangled href: https://tangled.org/pocka.jp - text: GitHub href: https://github.com/pocka poweredBy: true services.legit = { enable = true; server: name: "${cfg.domain}" host: "127.0.0.1" port: ${builtins.toString cfg.port} ''; }; config = { repo = { scanPath = "${config.xdg.dataHome}/soft-serve/repos/x"; readme = [ "README" "README.md" "README.adoc" "README.txt" "ABOUT" "ABOUT.md" "ABOUT.adoc" "ABOUT.txt" ]; mainBranch = [ "trunk" "master" "main" ]; }; systemd.user.services.legit = { Unit = { Description = "legit, web frontend for git repositories."; }; meta = { title = "git.pocka.jp"; description = "My personal projects"; }; Service = { Type = "simple"; Restart = "always"; RestartSec = 1; ExecStart = "${package}/bin/legit --config=${config.xdg.configHome}/legit/config.yaml"; Environment = "PATH=$PATH:${lib.makeBinPath [ pkgs.git ]}"; }; ui.footer = { links = [ { text = "Contact"; href = "mailto:pockawoooh@gmail.com"; } { text = "Codeberg"; href = "https://codeberg.org/pocka"; } { text = "Tangled"; href = "https://tangled.org/pocka.jp"; } { text = "GitHub"; href = "https://github.com/pocka"; } ]; poweredBy = true; }; Install = { WantedBy = [ "default.target" ]; server = { name = "git.pocka.jp"; host = "127.0.0.1"; port = 5555; }; }; }; };
-
-
-
@@ -20,6 +20,7 @@nix-colorizer, plac, timetracker, legit, ... }: {
-
@@ -28,6 +29,13 @@config = { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; home-manager.extraSpecialArgs = { inherit nix-colorizer plac timetracker; }; home-manager.extraSpecialArgs = { inherit nix-colorizer plac timetracker legit ; }; }; }
-
-
overlays/legit.nix (deleted)
-
@@ -1,27 +0,0 @@# Copyright 2025 Shota FUJI <pockawoooh@gmail.com> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY # AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR # OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. # # SPDX-License-Identifier: 0BSD final: prev: { legit-web = prev.legit-web.overrideAttrs (old: { src = prev.fetchFromGitHub { owner = "pocka"; repo = "legit"; rev = "932dc3e712463e081feb2473b9e681026cd0f61b"; hash = "sha256-8H9Mc9jStv1xk7+JaT2asOSSbq3f9tsiZX/MXlqU6pA="; }; vendorHash = "sha256-GR+ddG6058s9NDGwbk2z86vcOIa11DUQqP6tS0ruUdo="; }); }
-