1
0

Compare commits

..

4 Commits

Author SHA1 Message Date
Flake Update Bot
9ffb4fa661 Flake update 2023-11-02T02:03+00:00 2023-11-02 03:03:08 +01:00
Flake Update Bot
22dd1be6ca Update from master 2023-11-02T02:03+00:00 2023-11-02 03:03:02 +01:00
43335679ed hosts/astatine: add user criese-nethinks 2023-10-29 20:06:30 +01:00
c013c4323a hosts/web-2: add install.nix.clerie.de 2023-10-25 21:45:38 +02:00
8 changed files with 60 additions and 3 deletions

View File

@ -183,11 +183,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1698053470, "lastModified": 1698853384,
"narHash": "sha256-sP8D/41UiwC2qn0X40oi+DfuVzNHMROqIWdSdCI/AYA=", "narHash": "sha256-/FQ2WeCjdjdNo9eGTO7JruGAjO2Ccime8y1OU4/Aesk=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "80d98a7d55c6e27954a166cb583a41325e9512d7", "rev": "11d50c5d52472ed40d3cb109daad03c836d2b328",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -37,6 +37,9 @@
astatine = { astatine = {
name = "astatine"; name = "astatine";
group = "event"; group = "event";
modules = [
./users/criese-nethinks
];
}; };
backup-4 = { name = "backup-4"; }; backup-4 = { name = "backup-4"; };
beryllium = { beryllium = {

View File

@ -6,6 +6,7 @@
./hardware-configuration.nix ./hardware-configuration.nix
./isa.nix ./isa.nix
./users.nix
]; ];
boot.kernelParams = [ "console=ttyS0,115200n8" ]; boot.kernelParams = [ "console=ttyS0,115200n8" ];

10
hosts/astatine/users.nix Normal file
View File

@ -0,0 +1,10 @@
{ ... }:
{
users.users.criese-nethinks = {
extraGroups = [
"wheel"
];
};
}

View File

@ -18,6 +18,7 @@
./meow.nix ./meow.nix
./milchinsel.nix ./milchinsel.nix
./mitel-ommclient2.nix ./mitel-ommclient2.nix
./nix-install.nix
./ping.nix ./ping.nix
./public.nix ./public.nix
./radicale.nix ./radicale.nix

View File

@ -0,0 +1,31 @@
{ pkgs, ... }:
let
install_script = pkgs.writeTextDir "web/install" ''
#!/usr/bin/env bash
set -euo pipefail
which nix 2>1 > /dev/null || { echo "nix command not found. Install nix and try again"; exit 1; }
nix --extra-experimental-features "nix-command" \
--substituters "https://nix-cache.clerie.de" \
--trusted-public-keys "nix-cache.clerie.de:bAt1GJTS9BOTcXFWj3nURrSlcjqikCev9yDvqArMP5g=" \
copy --from "https://nix-cache.clerie.de" \
${pkgs.nixfiles-auto-install}
${pkgs.nixfiles-auto-install}/bin/nixfiles-auto-install
'';
in {
services.nginx.virtualHosts = {
"install.nix.clerie.de" = {
enableACME = true;
forceSSL = true;
locations."/" = {
root = install_script + "/web/";
extraConfig = ''
index install;
types { } default_type "text/plain; charset=utf-8";
'';
};
};
};
}

View File

@ -0,0 +1,10 @@
{ ... }:
{
users.users.criese-nethinks = {
isNormalUser = true;
openssh.authorizedKeys.keys = [
(builtins.readFile ./ssh-criese.pub)
];
};
}

View File

@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCXduKo8ZksOerEvN4y8SrMqz1G1B8Ibav7Jf1ELBNnQUEOBrRQFMDWgltPySEB0C4lq6rdkkIs6669PSmQp2KLW+aP1Ch/tvIv2mgWk7/XVbzUQgA8nDa2j9fHdiQ7dW7tE9ccgBsZlVX5VYHnq+P1Birkp6RJF+Wiizy6mvDEsHnSdI0INWX1+ffCjCwCRuxABxG3usqYZdSYIFQaFdw7wsz8sqXs8uEb57+y+ZTfZpZj7FnoN+sHZwBcCbCdhs50P/3Q3zsWeK66rXJC83mKCsVOGU0Ls9gslDNDBrAZhbBNOgUkbQmH8yuuAVUu807B7cR5jsK6NrfRwnnyBK1nAiKJNZU0Y8VPkhTsa1XYAxU91QGLtPbhnhBisCSMLD0Le/fOnU3I6dsKtg8sVwdL1jn/c6vU2t4lEi3Eczcc316OVH5+b+L7JuplDBQH8dN6PkxuYBEp9/zl77n7gIH/1MfhmDBZfkVHZX8NKM72QtSwgu4U/vgMsZ6fSDYM58E= criese