Changes
3 changed files (+54/-52)
-
-
@@ -5,43 +5,6 @@... }: let legit-web = pkgs.legit-web.overrideAttrs (old: { # Technically upstream is https://git.pocka.jp/legit.git but using GitHub is maybe more reliable? # Since if GitHub is down nixpkgs itself breaks src = pkgs.fetchFromGitHub { owner = "pocka"; repo = "legit"; rev = "6248d4ed1879658aeeb66541a95ee677ef3567a8"; # TODO: Use v1.0 once it's released hash = "sha256-Cfg5wny0dBSBfhXkgjtjCOGMCTjcpT7Lw1GGxr6Qrew="; }; vendorHash = "sha256-qSnRQIuHnUQit21232SsMY0LQVvcy0PqBPQVPjsNJWA="; nativeCheckInputs = [ pkgs.git ]; postInstall = ""; }); # Don't use services.legit.settings because of its rigid schema legit-yaml = (pkgs.formats.yaml { }).generate "legit.yaml" { meta = { title = "Typeclass instance problem is stuck"; description = "It is often due to incompetence"; syntaxHighlight = true; }; repo = { mainBranch = [ "main" "master" ]; readme = [ "README.md" ]; scanPath = "/srv/git"; }; server = { name = "git.unnamed.website"; host = "localhost"; port = 5555; }; ui.footer.poweredBy = true; }; in { # Use lower IO priority for Nix so my server is still responsive while GCing nix.daemonIOSchedClass = "idle";
-
@@ -185,14 +148,27 @@ in}; # Git server services.legit.enable = true; systemd = { services.legit = { # Fix error when git cloning path = [ pkgs.git ]; # Use custom config file serviceConfig.ExecStart = lib.mkForce "${legit-web}/bin/legit -config ${legit-yaml}"; services.legit = { enable = true; config = { meta = { title = "Typeclass instance problem is stuck"; description = "It is often due to incompetence"; syntaxHighlight = true; }; repo = { mainBranch = [ "main" "master" ]; readme = [ "README.md" ]; scanPath = "/srv/git"; }; server.name = "git.unnamed.website"; ui.footer.poweredBy = true; }; }; systemd = { # Update Git mirrors services.update-mirrors = { wantedBy = [ "multi-user.target" ];
-
-
-
@@ -21,6 +21,26 @@"type": "github" } }, "legit": { "inputs": { "nixpkgs": [ "nixpkgs" ] }, "locked": { "lastModified": 1784469641, "narHash": "sha256-vAYx81LWFAhTl5GPzXRGkWoCiOMI5FxDjadmlHQ8ci8=", "owner": "pocka", "repo": "legit", "rev": "285c1c48a4c844b7ce605dfc521ba1ccb879041c", "type": "github" }, "original": { "owner": "pocka", "repo": "legit", "type": "github" } }, "nixathena": { "inputs": { "nixpkgs": [
-
@@ -28,11 +48,11 @@] }, "locked": { "lastModified": 1782839797, "narHash": "sha256-X0AR/OqDLFqPhEgMLCrIAM33YulXU32VnxhuRtCF93Y=", "lastModified": 1784420908, "narHash": "sha256-yB0bCDPJcf5bgkeTYktdjdj0MpnQPpDqI2Q+uFo/XxE=", "ref": "refs/heads/main", "rev": "8301e7c94613aa6e561c4fc93efc14663421abc6", "revCount": 120, "rev": "0d38d6c06a189c3b70a8bfae02ed0661e5654963", "revCount": 122, "type": "git", "url": "https://forgejo.mit.edu/SIPB/nixathena.git" },
-
@@ -43,11 +63,11 @@}, "nixpkgs": { "locked": { "lastModified": 1784007870, "narHash": "sha256-djcLt/JJphyNt4eDY9XTly+/WbCK5lqWq9lSgCmJkkQ=", "lastModified": 1784356753, "narHash": "sha256-12KrbMiWLcf8m7pCvAtZh1ZrgF85ZXDXvfR/fWTKy84=", "owner": "NixOS", "repo": "nixpkgs", "rev": "18b9261cb3294b6d2a06d03f96872827b8fe2698", "rev": "61b7c44c4073f0b827768aff0049561b5110ea5a", "type": "github" }, "original": {
-
@@ -60,6 +80,7 @@"root": { "inputs": { "disko": "disko", "legit": "legit", "nixathena": "nixathena", "nixpkgs": "nixpkgs" }
-
-
-
@@ -8,6 +8,10 @@url = "github:nix-community/disko/latest"; inputs.nixpkgs.follows = "nixpkgs"; }; legit = { url = "github:pocka/legit"; inputs.nixpkgs.follows = "nixpkgs"; }; # Dogfooding my own project nixathena = { url = "git+https://forgejo.mit.edu/SIPB/nixathena.git";
-
@@ -43,7 +47,8 @@"${nixpkgs}/nixos/modules/profiles/minimal.nix" ./configuration.nix ./Unnamed-Server inputs.disko.nixosModules.disko inputs.disko.nixosModules.default inputs.legit.nixosModules.default ]; }; };
-