summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authoradi <adikro@disroot.org>2026-07-29 17:09:58 +0200
committeradi <adikro@disroot.org>2026-07-29 17:09:58 +0200
commit39a2b09c27bb74c9e59d1772764f901e3c8fb9e4 (patch)
tree0ba58e6fbf086a85d875df1c10f6d23bc3bbc7da /hosts
parent8a820cacee1ff07ae7397d053b26e66f7086a4a4 (diff)
revamped flake.nix, removed homelab specific modulesstaging
Diffstat (limited to 'hosts')
-rw-r--r--hosts/bibus-lab/configuration.nix13
-rw-r--r--hosts/bibus-lab/disko.nix249
-rw-r--r--hosts/desktop/1119
-rw-r--r--hosts/desktop/hardware-configuration.nix71
4 files changed, 0 insertions, 452 deletions
diff --git a/hosts/bibus-lab/configuration.nix b/hosts/bibus-lab/configuration.nix
deleted file mode 100644
index bace2f6..0000000
--- a/hosts/bibus-lab/configuration.nix
+++ /dev/null
@@ -1,13 +0,0 @@
-{ inputs, ... }:
-{
- system.stateVersion = "26.11";
-
- imports = [
- inputs.disko.nixosModules.disko
- ./disko.nix
-
- ../../os/default.nix
- ];
-
- hardware.facter.reportPath = ./facter.json;
-}
diff --git a/hosts/bibus-lab/disko.nix b/hosts/bibus-lab/disko.nix
deleted file mode 100644
index 203ec95..0000000
--- a/hosts/bibus-lab/disko.nix
+++ /dev/null
@@ -1,249 +0,0 @@
-{
- disko.devices = {
- main = {
- type = "disk";
- # TODO fill id
- device = "/dev/disk/by-id/CHANGEME";
- content = {
- type = "gpt";
- partitions = {
- ESP = {
- size = "2G";
- type = "EF00";
- content = {
- type = "filesystem";
- format = "vfat";
- mountpoint = "/boot";
- };
- };
- zfs = {
- size = "100%";
- content = {
- type = "zfs";
- pool = "zroot";
- };
- };
- };
- };
- };
- hdd1 = {
- type = "disk";
- # TODO fill id
- device = "/dev/disk/by-id/CHANGEME";
- content = {
- type = "gpt";
- partitions = {
- zfs = {
- size = "100%";
- content = {
- type = "zfs";
- pool = "tank";
- };
- };
- };
- };
- };
- hdd2 = {
- type = "disk";
- # TODO fill id
- device = "/dev/disk/by-id/CHANGEME";
- content = {
- type = "gpt";
- partitions = {
- zfs = {
- size = "100%";
- content = {
- type = "zfs";
- pool = "tank";
- };
- };
- };
- };
- };
- hdd3 = {
- type = "disk";
- # TODO fill id
- device = "/dev/disk/by-id/CHANGEME";
- content = {
- type = "gpt";
- partitions = {
- zfs = {
- size = "100%";
- content = {
- type = "zfs";
- pool = "tank";
- };
- };
- };
- };
- };
- zpool = {
- zroot = {
- type = "zpool";
- rootTmpfs = true;
- datasets = {
- "rpool" = {
- type = "zfs_fs";
- options = {
- mountpoint = "none";
- compression = "zstd";
- atime = "off";
- };
- };
- "rpool/root" = {
- type = "zfs_fs";
- mountpoint = "/";
- options.mountpoint = "legacy";
- };
- "rpool/nix" = {
- type = "zfs_fs";
- mountpoint = "/nix";
- options.mountpoint = "legacy";
- };
- "rpool/home" = {
- type = "zfs_fs";
- mountpoint = "/home";
- };
- "rpool/persist" = {
- type = "zfs_fs";
- mountpoint = "/persist";
- options.mountpoint = "legacy";
- };
- "rpool/log" = {
- type = "zfs_fs";
- mountpoint = "/var/log";
- options.mountpoint = "legacy";
- };
- "rpool/var" = {
- type = "zfs_fs";
- options.mountpoint = "none";
- };
- "rpool/var/acme" = {
- type = "zfs_fs";
- mountpoint = "/var/lib/acme";
- };
- "rpool/containers" = {
- type = "zfs_fs";
- mountpoint = "/var/lib/containers";
- };
- "rpool/appdata" = {
- type = "zfs_fs";
- options.mountpoint = "none";
- };
- "rpool/appdata/cfg" = {
- type = "zfs_fs";
- mountpoint = "/var/lib/appdata/cfg";
- };
- "rpool/appdata/db" = {
- type = "zfs_fs";
- mountpoint = "/var/lib/appdata/db";
- options.canmount = "off";
- };
- "rpool/appdata/db/postgres" = {
- type = "zfs_fs";
- mountpoint = "/var/lib/appdata/db/postgres";
- options = {
- recordsize = "8K";
- logbias = "latency";
- };
- };
- "rpool/appdata/db/couchdb" = {
- type = "zfs_fs";
- mountpoint = "/var/lib/appdata/db/couchdb";
- options.recordsize = "64K";
- };
- "rpool/appdata/db/redis" = {
- type = "zfs_fs";
- mountpoint = "/var/lib/appdata/db/redis";
- options = {
- recordsize = "128K";
- compression = "lz4";
- };
- };
- "rpool/appdata/monero" = {
- type = "zfs_fs";
- mountpoint = "/var/lib/monero";
- options = {
- compression = "off";
- recordsize = "8K";
- };
- };
- "rpool/appdata/mail" = {
- type = "zfs_fs";
- mountpoint = "/var/vmail";
- options = {
- atime = "on";
- recordsize = "64K";
- };
- };
- "rpool/appdata/games" = {
- type = "zfs_fs";
- mountpoint = "/var/lib/games";
- options.recordsize = "64K";
- };
- };
- };
- tank = {
- type = "zpool";
- mode = "raidz1";
-
- datasets = {
- "ztank" = {
- type = "zfs_fs";
- mountpoint = "none";
- options = {
- compression = "zstd";
- atime = "off";
- };
- };
- "ztank/media" = {
- type = "zfs_fs";
- mountpoint = "/data/media";
- options = {
- compression = "none";
- recordsize = "1M";
- };
- };
- "ztank/vault" = {
- type = "zfs_fs";
- mountpoint = "/data/vault";
- options.xattr = "sa";
- };
- "ztank/seafile" = {
- type = "zfs_fs";
- mountpoint = "none";
- options.recordsize = "128K";
- };
- "ztank/seafile/personal" = {
- type = "zfs_fs";
- mountpoint = "/data/seafile/personal";
- };
- "ztank/seafile/shared" = {
- type = "zfs_fs";
- mountpoint = "/data/seafile/shared";
- refquota = "1T";
- };
- "ztank/dl" = {
- type = "zfs_fs";
- options.mountpoint = "none";
- };
- "ztank/dl/active" = {
- type = "zfs_fs";
- mountpoint = "/data/dl/active";
- options.recordsize = "16K";
- };
- "ztank/dl/complete" = {
- type = "zfs_fs";
- mountpoint = "/data/dl/complete";
- options.recordsize = "1M";
- };
- "ztank/backup" = {
- type = "zfs_fs";
- mountpoint = "/data/backup";
- options.recordsize = "1M";
- };
- };
- };
- };
- };
-}
diff --git a/hosts/desktop/1 b/hosts/desktop/1
deleted file mode 100644
index 088098d..0000000
--- a/hosts/desktop/1
+++ /dev/null
@@ -1,119 +0,0 @@
-{ config, username, ... }:
-{
- system.stateVersion = "25.05";
-
- imports = [
- ./hardware-configuration.nix
- ../../os/default.nix
- ];
-
- os = {
- core = {
- allowUnfree.enable = true;
- flatpak.enable = true;
-
- audio = {
- enable = true;
- disable-devices.enable = true;
- };
- bootloader = {
- type = "systemd-boot";
- timeout = 0;
- };
- drivers = {
- enable = true;
- kernel = "zen";
- cpu = "amd";
- graphics = {
- enable = true;
- amdgpu.enable = true;
- };
- };
- fonts.enable = true;
- greet.enable = true;
- home-manager = {
- enable = true;
- users.${username}.path = ./home.nix;
- };
- locale.enable = true;
- memory = {
- zram.enable = true;
- swapfile = {
- enable = true;
- size = 16;
- };
- };
- network.enable = true;
- security = {
- enable = true;
- sandboxing.enable = true;
- };
- storage.enable = true;
- users.enable = true;
- };
- srv = {
- bluetooth.enable = true;
- tailscale.enable = true;
- ssh = {
- server.enable = true;
- client = {
- enable = true;
- createAliases = true;
- };
- enableSigning = true;
- };
- firewall.enable = true;
- yggdrasil.enable = true;
- i2p.enable = true;
- tor = {
- enable = true;
- enableBrowser = true;
- };
- files = {
- enable = true;
- localsend.enable = true;
- krusader.enable = true;
- };
- gaming = {
- enable = true;
- steam = {
- enable = true;
- enableSls = true;
- };
- vr.enable = true;
- };
- sunshine.enable = true;
- virtualization.kvm.enable = true;
- nix-helper.enable = true;
- monero.wallet.enable = true;
- sops.enable = true;
- syncthing = {
- enable = true;
- activeFolders = [
- "openmw-config"
- "openmw-mods"
- "game-saves"
- "keepass"
- "sync"
- "music"
- ];
- };
- omnisearch.enable = true;
- };
- wm = {
- enable = true;
- niri.enable = true;
- };
- };
-
- boot = {
- kernelModules = [
- "nct6687"
- "binder_linux"
- "ashem_linux"
- ];
- extraModulePackages = [
- config.boot.kernelPackages.nct6687d
- ];
- };
-}
diff --git a/hosts/desktop/hardware-configuration.nix b/hosts/desktop/hardware-configuration.nix
deleted file mode 100644
index 6685e8e..0000000
--- a/hosts/desktop/hardware-configuration.nix
+++ /dev/null
@@ -1,71 +0,0 @@
-# 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 = [
- "nvme"
- "ahci"
- "xhci_pci"
- "usbhid"
- "usb_storage"
- "sd_mod"
- ];
- boot.initrd.kernelModules = [ ];
- boot.kernelModules = [ "kvm-amd" ];
- boot.extraModulePackages = [ ];
-
- fileSystems."/" = {
- device = "/dev/disk/by-uuid/aa9c6208-2cc3-413c-a52a-5e0fdf93e748";
- fsType = "btrfs";
- options = [ "noatime" ];
- };
-
- fileSystems."/boot" = {
- device = "/dev/disk/by-uuid/A687-03D4";
- fsType = "vfat";
- options = [
- "fmask=0022"
- "dmask=0022"
- ];
- };
-
- fileSystems."/home" = {
- device = "/dev/disk/by-uuid/694036da-fc6e-4c7c-8765-7b90fb9a04c8";
- fsType = "btrfs";
- options = [ "noatime" ];
- };
-
- fileSystems."/storage" = {
- device = "/dev/disk/by-uuid/c0dc7c4d-1800-4c84-a04c-5ea7f5e86c4b";
- fsType = "ext4";
- options = [
- "nofail"
- "noatime"
- ];
- };
-
- swapDevices = [ ];
-
- # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
- # (the default) this is the recommended approach. When using systemd-networkd it's
- # still possible to use this option, but it's recommended to use it in conjunction
- # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
- networking.useDHCP = lib.mkDefault true;
- # networking.interfaces.enp14s0.useDHCP = lib.mkDefault true;
- # networking.interfaces.wlp15s0.useDHCP = lib.mkDefault true;
-
- nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
- hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
-}