nix fmt
All checks were successful
/ check (push) Successful in 1m43s

This commit is contained in:
Oliver Davies 2025-07-24 21:13:55 +01:00
parent e111506428
commit 0259ea44f0
5 changed files with 47 additions and 33 deletions

View file

@ -10,27 +10,27 @@ let
in
{ inherit port root url; } // overrides;
sites =
[
{
root = "/var/www/vhosts/website-sculpin";
port = ports.nginx-website-2025;
url = "2025.oliverdavies.uk";
sites = [
{
root = "/var/www/vhosts/website-sculpin";
port = ports.nginx-website-2025;
url = "2025.oliverdavies.uk";
extraConfig = ''
add_header X-Robots-Tag "noindex, nofollow";
'';
}
extraConfig = ''
add_header X-Robots-Tag "noindex, nofollow";
'';
}
(mkSite "eric" {
rootSuffix = "/public";
(mkSite "eric" {
rootSuffix = "/public";
extraConfig = ''
add_header X-Robots-Tag "noindex, nofollow";
'';
})
]
++ map
extraConfig = ''
add_header X-Robots-Tag "noindex, nofollow";
'';
})
]
++
map
(
domain:
mkSite domain {

View file

@ -1,4 +1,9 @@
{ config, inputs, lib, ... }:
{
config,
inputs,
lib,
...
}:
{
flake.modules.nixos.pc = {

View file

@ -1,4 +1,9 @@
{ config, inputs, self, ... }:
{
config,
inputs,
self,
...
}:
{
flake =
@ -15,7 +20,7 @@
mkNixosConfiguration =
{
hostname,
modules ? [],
modules ? [ ],
stateVersion ? "22.11",
system ? "x86_64-linux",
}:

View file

@ -13,22 +13,27 @@ in
"secrets/cloudflare.age".publicKeys = [
hosts.nixedo
hosts.t480
] ++ [ users.opdavies ];
]
++ [ users.opdavies ];
"secrets/cloudflared-credentials.age".publicKeys = [
hosts.nixedo
] ++ [ users.opdavies ];
]
++ [ users.opdavies ];
"secrets/forgejo-runner-token.age".publicKeys = [
hosts.nixedo
] ++ [ users.opdavies ];
]
++ [ users.opdavies ];
"secrets/peertube-env.age".publicKeys = [
hosts.nixedo
] ++ [ users.opdavies ];
]
++ [ users.opdavies ];
"secrets/tubearchivist-env.age".publicKeys = [
hosts.nixedo
hosts.t480
] ++ [ users.opdavies ];
]
++ [ users.opdavies ];
}

View file

@ -13,13 +13,12 @@ with lib;
initialPassword = "opdavies";
isNormalUser = true;
extraGroups =
[
"networkmanager"
"wheel"
]
++ optional config.features.cli.docker.enable "docker"
++ optional config.features.cli.podman.enable "podman";
extraGroups = [
"networkmanager"
"wheel"
]
++ optional config.features.cli.docker.enable "docker"
++ optional config.features.cli.podman.enable "podman";
packages = with pkgs; [
magic-wormhole