aboutsummaryrefslogtreecommitdiff
path: root/hosts/copenhagen
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2025-02-08 23:19:40 -0800
committerCaroline Larimore <caroline@larimo.re>2025-04-14 18:58:53 -0700
commit596308634840634c216e8f1f1db8920886df0aa4 (patch)
tree7e55f6c8e8e6864067f293dce6c4ac4d5a3dd393 /hosts/copenhagen
parent1cfb12afdddce77ab2a8c430b53faf9d8d31d920 (diff)
migration: start copenhagen config
Diffstat (limited to 'hosts/copenhagen')
-rw-r--r--hosts/copenhagen/configuration.nix39
-rw-r--r--hosts/copenhagen/hardware.nix56
2 files changed, 0 insertions, 95 deletions
diff --git a/hosts/copenhagen/configuration.nix b/hosts/copenhagen/configuration.nix
index f66a1a9..73cacac 100644
--- a/hosts/copenhagen/configuration.nix
+++ b/hosts/copenhagen/configuration.nix
@@ -1,45 +1,15 @@
{ config, lib, pkgs, inputs, ... }:
{
- imports = [
- ./hardware.nix
- ../../core
- ../../roles
- ];
-
- nix.settings.experimental-features = [ "nix-command" "flakes" ];
-
environment.persistence."/persist/system" = {
- hideMounts = true;
-
directories = [
- "/etc/nixos"
- "/var/log"
- "/var/lib/nixos"
- "/var/lib/systemd/coredump"
-
"/var/lib/acme"
"/srv/web"
"/srv/minecraft"
];
-
- files = [
- "/etc/machine-id"
- ];
};
- programs.fuse.userAllowOther = true;
-
- networking = {
- hostName = "copenhagen";
- hostId = "a50062ff";
-
- useDHCP = true;
- };
-
- time.timeZone = "America/Los_Angeles";
-
users.users = {
root.hashedPasswordFile = "/secrets/passwords/root";
@@ -54,13 +24,6 @@
};
};
- home-manager = {
- extraSpecialArgs = { inherit inputs; };
- users = {
- "c" = import ./home/c.nix;
- };
- };
-
roles = {
minecraft = {
enable = true;
@@ -106,6 +69,4 @@
environment.systemPackages = with pkgs; [
ffmpeg
];
-
- system.stateVersion = "23.11";
}
diff --git a/hosts/copenhagen/hardware.nix b/hosts/copenhagen/hardware.nix
deleted file mode 100644
index 7c0a1f3..0000000
--- a/hosts/copenhagen/hardware.nix
+++ /dev/null
@@ -1,56 +0,0 @@
-{ config, lib, pkgs, modulesPath, ... }:
-
-{
- imports = [
- (modulesPath + "/installer/scan/not-detected.nix")
- ];
-
- boot = {
- loader.grub = {
- enable = true;
-
- zfsSupport = true;
- efiSupport = true;
- efiInstallAsRemovable = true;
-
- mirroredBoots = [
- { devices = [ "nodev" ]; path = "/boot"; }
- ];
- };
-
- initrd = {
- availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
- kernelModules = [ ];
-
- postDeviceCommands = lib.mkAfter ''
- zfs rollback -r zpool/root@blank && zfs rollback -r zpool/home@blank
- '';
-
- postMountCommands = lib.mkAfter ''
- chmod u=rw,g=,o= /secrets
- '';
- };
-
- kernelModules = [ "kvm-intel" ];
- extraModulePackages = [ ];
-
- supportedFilesystems = [ "ntfs" ];
- };
-
- fileSystems = {
- "/" = { fsType = "zfs"; neededForBoot = true; device = "zpool/root"; };
- "/nix" = { fsType = "zfs"; neededForBoot = true; device = "zpool/nix"; };
- "/home" = { fsType = "zfs"; neededForBoot = true; device = "zpool/home"; };
- "/persist" = { fsType = "zfs"; neededForBoot = true; device = "zpool/persist"; };
- "/secrets" = { fsType = "zfs"; neededForBoot = true; device = "zpool/secrets"; };
-
- "/boot" = { fsType = "vfat"; device = "/dev/disk/by-uuid/DF61-E3BD"; };
-
- "/mnt/old" = { fsType = "ext4"; device = "/dev/disk/by-label/box"; };
- };
-
- swapDevices = [ ];
-
- nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
- hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
-}