feat(nixos/roles/git): hide private repos from petal and http
5 files changed, -9/+19
flake.lock
@@ -39,17 +39,17 @@ "greenhouse": { "flake": false, "locked": {- "lastModified": 1791977330,- "narHash": "sha256-U5b02FLOLbIri0IHjkc9rbmqMKFahGvs1XJ1iwj11KI=",+ "lastModified": 1792006262,+ "narHash": "sha256-c7YHNx92l27Hu9v/dTbevtHKLb2T517oudbqSJCA5M4=", "ref": "refs/heads/main",- "rev": "3d35447859ea3605eed5b6300b61736fce6eeedd",- "revCount": 1,+ "rev": "322994003fbbd7f9aa86c1ba1a1f9968eef1c3ad",+ "revCount": 3, "type": "git",- "url": "ssh://[email protected]/greenhouse"+ "url": "https://git.lostduk.com/greenhouse.git" }, "original": { "type": "git",- "url": "ssh://[email protected]/greenhouse"+ "url": "https://git.lostduk.com/greenhouse.git" } }, "home-manager": {
flake.nix
@@ -13,7 +13,7 @@ home-manager.url = "sourcehut:~rycee/home-manager"; home-manager.inputs.nixpkgs.follows = "nixpkgs"; - greenhouse.url = "git+ssh://[email protected]/greenhouse";+ greenhouse.url = "git+https://git.lostduk.com/greenhouse.git"; greenhouse.flake = false; };
nixos/features/kore.nix
@@ -81,6 +81,10 @@ let type = types.nullOr types.str; default = null; };+ private = mkOption {+ type = types.bool;+ default = false;+ }; }; hostNames = name: host:
nixos/roles/git.nix
@@ -147,6 +147,9 @@ in { ${if access.mirror != null then "git -C '${root}/${repo}.git' config kore.mirror ${lib.escapeShellArg access.mirror}" else "git -C '${root}/${repo}.git' config --unset kore.mirror || true"}+ ${if access.private+ then "rm -f '${root}/${repo}.git/git-daemon-export-ok'"+ else "touch '${root}/${repo}.git/git-daemon-export-ok'"} '') repos); }; @@ -172,6 +175,7 @@ in { forceSSL = true; locations."= /style.css".alias = "${petal}/share/petal/style.css";+ locations."= /icon.svg".alias = "${petal}/share/petal/icon.svg"; locations."/".extraConfig = fastcgi + '' fastcgi_param SCRIPT_FILENAME ${petal}/bin/petal;@@ -187,7 +191,6 @@ in { fastcgi_param SCRIPT_FILENAME ${pkgs.git}/libexec/git-core/git-http-backend; fastcgi_param PATH_INFO /$1; fastcgi_param GIT_PROJECT_ROOT ${root};- fastcgi_param GIT_HTTP_EXPORT_ALL 1; ''; }; }
overlays/dwl_config.h
@@ -118,4 +118,7 @@ static const Button buttons[] = { { MODKEY, BTN_MIDDLE, togglefloating, {0} }, }; -static const Axis axes[] = {};+static const Axis axes[] = {+ { MODKEY, AxisUp, focusstack, {.i = -1} },+ { MODKEY, AxisDown, focusstack, {.i = +1} },+};