forked from Fachschaft/nixConfig
Compare commits
No commits in common. "cthulhu" and "main" have entirely different histories.
2 changed files with 0 additions and 64 deletions
|
@ -1,25 +0,0 @@
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./hardware-configuration.nix
|
|
||||||
../../roles
|
|
||||||
../../roles/vm.nix
|
|
||||||
../../modules/vmNetwork.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
# System configuration here
|
|
||||||
|
|
||||||
networking.hostName = "cthulhu";
|
|
||||||
vmNetwork.ipv4 = "192.168.0.16";
|
|
||||||
system.stateVersion = "25.05";
|
|
||||||
|
|
||||||
sops.secrets = {
|
|
||||||
backupKey = {
|
|
||||||
sopsFile = ./backupKey.secrets.yaml;
|
|
||||||
owner = "root";
|
|
||||||
group = "root";
|
|
||||||
mode = "0400";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
# TODO for the network rework, make a central record of hostnames to ip adresses where every
|
|
||||||
# machine can read out their ip address and also this machine
|
|
||||||
}
|
|
|
@ -1,39 +0,0 @@
|
||||||
{
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [];
|
|
||||||
|
|
||||||
fileSystems."/" = {
|
|
||||||
device = "root";
|
|
||||||
fsType = "tmpfs";
|
|
||||||
options = ["size=1G" "mode=755"];
|
|
||||||
};
|
|
||||||
fileSystems."/persist" = {
|
|
||||||
device = "/dev/disk/by-label/nixos";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = ["subvol=persist"];
|
|
||||||
neededForBoot = true;
|
|
||||||
};
|
|
||||||
fileSystems."/boot" = {
|
|
||||||
device = "/dev/disk/by-label/boot";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
fileSystems."/nix" = {
|
|
||||||
device = "/dev/disk/by-label/nixos";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = ["subvol=nix"];
|
|
||||||
};
|
|
||||||
fileSystems."/var/www" = {
|
|
||||||
device = "/dev/disk/by-label/cthulhu-website-"; # The trailing - is part of the name, i suspect it was meant to be longer
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
# nix puts the caching folder under /var/cache/nginx
|
|
||||||
fileSystems."/var/cache/nginx" = {
|
|
||||||
device = "/dev/disk/by-label/cthulhu";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue