aboutsummaryrefslogtreecommitdiffstats
path: root/hosts
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-10-14 01:31:23 -0700
committerMark Nipper <nipsy@bitgnome.net>2024-10-14 01:31:23 -0700
commit926df6f44be08773dfc066287e78b4663c1c229e (patch)
tree2cd95ceeab63084860b303b4683dc8dec4baa59b /hosts
parent703198a82be10544d6e7b81d18a57d933edb2fe0 (diff)
downloadnix-926df6f44be08773dfc066287e78b4663c1c229e.tar
nix-926df6f44be08773dfc066287e78b4663c1c229e.tar.gz
nix-926df6f44be08773dfc066287e78b4663c1c229e.tar.bz2
nix-926df6f44be08773dfc066287e78b4663c1c229e.tar.lz
nix-926df6f44be08773dfc066287e78b4663c1c229e.tar.xz
nix-926df6f44be08773dfc066287e78b4663c1c229e.tar.zst
nix-926df6f44be08773dfc066287e78b4663c1c229e.zip
More nipsy cgit
Diffstat (limited to 'hosts')
-rw-r--r--hosts/arrakis/default.nix6
-rw-r--r--hosts/arrakis/services.nix9
2 files changed, 13 insertions, 2 deletions
diff --git a/hosts/arrakis/default.nix b/hosts/arrakis/default.nix
index e2f3a38..a8d1cdd 100644
--- a/hosts/arrakis/default.nix
+++ b/hosts/arrakis/default.nix
@@ -230,6 +230,12 @@
};
};
+ system.activationScripts = {
+ fix-acl-cgit-home-nipsy = ''
+ ${pkgs.acl}/bin/setfacl -m u:cgit:--x /home/nipsy
+ '';
+ };
+
system.stateVersion = "23.11";
systemd.services = {
diff --git a/hosts/arrakis/services.nix b/hosts/arrakis/services.nix
index ff8d5b8..bd73e3e 100644
--- a/hosts/arrakis/services.nix
+++ b/hosts/arrakis/services.nix
@@ -2,7 +2,7 @@
environment.etc."gitconfig".text = ''
[safe]
- directory = /home/nipsy/www/git
+ directory = /home/nipsy/www/git/nix/.git
'';
security.acme = {
@@ -15,7 +15,12 @@
"arrakis.bitgnome.net" = {
enable = true;
nginx.location = "/nipsy/git/";
- scanPath = "/home/nipsy/www/git";
+ repos = {
+ nix = {
+ desc = "a NixOS configuration";
+ path = "/home/nipsy/www/git/nix";
+ };
+ };
settings = {
about-filter = "${pkgs.cgit}/lib/cgit/filters/about-formatting.sh";
branch-sort = "age";