1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
17e3d37989 Add host palladium 2021-04-30 23:36:48 +02:00
db37daab95 Add ard erothek to web-2 2021-04-30 23:36:26 +02:00
4 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,20 @@
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
../../configuration/common
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "palladium";
networking.useDHCP = false;
networking.interfaces.enp3s0.useDHCP = true;
system.stateVersion = "21.03";
}

View File

@ -0,0 +1,34 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/b217f1e1-1337-4ef0-bad5-15829ba32c7a";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/7A6B-3444";
fsType = "vfat";
};
fileSystems."/mnt/palladium" =
{ device = "/dev/disk/by-uuid/f20d20ca-6be5-4b16-81fe-e66f31ffd108";
fsType = "ext4";
};
swapDevices = [ ];
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}

View File

@ -0,0 +1,22 @@
{ ... }:
{
services.nginx.virtualHosts = {
"www.ard-erothek.de" = {
enableACME = true;
forceSSL = true;
locations."/" = {
return = "301 https://ard-erothek.de$request_uri";
};
};
"ard-erothek.de" = {
enableACME = true;
forceSSL = true;
root = fetchGit {
url = "https://git.clerie.de/clerie/ard-erothek.de.git";
rev = "f030a96a1be550e600e029bf1addd009a89edcce";
};
};
};
}

View File

@ -5,6 +5,7 @@
[ [
./hardware-configuration.nix ./hardware-configuration.nix
../../configuration/common ../../configuration/common
./ard-erothek.nix
./bubblesort.nix ./bubblesort.nix
./clerie.nix ./clerie.nix
./gitea.nix ./gitea.nix