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

View file

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

View file

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

View file

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

View file

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