mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2026-07-04 01:41:49 +02:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d23adbd4c2 | |||
| 48c0a4e504 | |||
| 374d9b1bc7 |
@@ -369,7 +369,12 @@
|
||||
//
|
||||
# Machines
|
||||
lib.genAttrs allMachines
|
||||
(machine: self.nixosConfigurations.${machine}.config.system.build.toplevel)
|
||||
(machine: self.nixosConfigurations.${machine}.config.system.build.toplevel.overrideAttrs (prev: {
|
||||
passthru =
|
||||
(prev.passthru or { })
|
||||
// self.nixosConfigurations.${machine}.config.system.build
|
||||
// { inherit (self.nixosConfigurations.${machine}) pkgs config; };
|
||||
}))
|
||||
//
|
||||
# Nix-topology
|
||||
(let
|
||||
|
||||
@@ -63,6 +63,10 @@ in
|
||||
];
|
||||
|
||||
extraConfig = ''
|
||||
<Directory "${pkgs.emptyDirectory}">
|
||||
Require all denied
|
||||
</Directory>
|
||||
|
||||
CustomLog "${cfg.logDir}/access.log" combined
|
||||
CustomLog "/run/httpd-log-processor-access.fifo" combined
|
||||
ErrorLog "/run/httpd-log-processor-error.fifo"
|
||||
@@ -107,25 +111,25 @@ in
|
||||
</Directory>
|
||||
|
||||
${lib.concatMapStringsSep "\n" (d: ''
|
||||
<Directory "${d}">
|
||||
<DirectoryMatch "/${d}(/|$)">
|
||||
Require all denied
|
||||
</Directory>
|
||||
</DirectoryMatch>
|
||||
'') [
|
||||
".git"
|
||||
".hg"
|
||||
".svn"
|
||||
".ssh"
|
||||
".bzr"
|
||||
".venv"
|
||||
"\\.git"
|
||||
"\\.hg"
|
||||
"\\.svn"
|
||||
"\\.ssh"
|
||||
"\\.bzr"
|
||||
"\\.venv"
|
||||
"CVS"
|
||||
"RCS"
|
||||
|
||||
"*.bak"
|
||||
"*.bak*"
|
||||
"*.bkp"
|
||||
"*.bkp*"
|
||||
"*.backup"
|
||||
"*.backup*"
|
||||
".*\\.bak"
|
||||
".*\\.bak.*"
|
||||
".*\\.bkp"
|
||||
".*\\.bkp.*"
|
||||
".*\\.backup"
|
||||
".*\\.backup.*"
|
||||
]}
|
||||
|
||||
${lib.concatMapStringsSep "\n" (d: ''
|
||||
|
||||
Reference in New Issue
Block a user