summaryrefslogtreecommitdiffstats
path: root/makefu/1systems/snake
diff options
context:
space:
mode:
Diffstat (limited to 'makefu/1systems/snake')
-rw-r--r--makefu/1systems/snake/config.nix26
-rw-r--r--makefu/1systems/snake/disk.nix64
-rw-r--r--makefu/1systems/snake/hardware-config.nix24
-rw-r--r--makefu/1systems/snake/sound.nix51
-rw-r--r--makefu/1systems/snake/source.nix6
-rw-r--r--makefu/1systems/snake/wifi.nix6
6 files changed, 0 insertions, 177 deletions
diff --git a/makefu/1systems/snake/config.nix b/makefu/1systems/snake/config.nix
deleted file mode 100644
index 69e347d71..000000000
--- a/makefu/1systems/snake/config.nix
+++ /dev/null
@@ -1,26 +0,0 @@
-{ config, lib, pkgs, ... }:
-let
- primaryInterface = "eth0";
-in {
- imports = [
- <stockholm/makefu>
- ./hardware-config.nix
- <stockholm/makefu/2configs/home-manager>
- <stockholm/makefu/2configs/tools/core.nix>
- <stockholm/makefu/2configs/binary-cache/nixos.nix>
-
- <stockholm/makefu/2configs/home/rhasspy>
- # <stockholm/makefu/2configs/hw/pseyecam.nix>
- ];
- krebs = {
- enable = true;
- tinc.retiolum.enable = true;
- build.host = config.krebs.hosts.snake;
- };
- # ensure disk usage is limited
- services.journald.extraConfig = "Storage=volatile";
- networking.firewall.trustedInterfaces = [ primaryInterface ];
- documentation.info.enable = false;
- documentation.man.enable = false;
- documentation.nixos.enable = false;
-}
diff --git a/makefu/1systems/snake/disk.nix b/makefu/1systems/snake/disk.nix
deleted file mode 100644
index f9e14844f..000000000
--- a/makefu/1systems/snake/disk.nix
+++ /dev/null
@@ -1,64 +0,0 @@
-{ disks ? [ "/dev/sda" ], ... }: {
- disk = {
- x = {
- type = "disk";
- device = "/dev/sda";
- content = {
- type = "table";
- format = "gpt";
- partitions = [
- {
- name = "boot";
- type = "partition";
- start = "0";
- end = "1M";
- part-type = "primary";
- flags = ["bios_grub"];
- }
- {
- type = "partition";
- name = "ESP";
- start = "1M";
- end = "512MiB";
- fs-type = "fat32";
- bootable = true;
- content = {
- type = "filesystem";
- format = "vfat";
- mountpoint = "/boot";
- };
- }
- {
- type = "partition";
- name = "zfs";
- start = "512MiB";
- end = "100%";
- content = {
- type = "zfs";
- pool = "zroot";
- };
- }
- ];
- };
- };
- };
- zpool = {
- zroot = {
- type = "zpool";
- rootFsOptions.compression = "lz4";
- mountpoint = "/";
-
- datasets = {
- home = {
- zfs_type = "filesystem";
- mountpoint = "/home";
- options.mountpoint = "legacy";
- };
- reserved = {
- zfs_type = "filesystem";
- options.refreservation = "1G";
- };
- };
- };
- };
-}
diff --git a/makefu/1systems/snake/hardware-config.nix b/makefu/1systems/snake/hardware-config.nix
deleted file mode 100644
index 88124f659..000000000
--- a/makefu/1systems/snake/hardware-config.nix
+++ /dev/null
@@ -1,24 +0,0 @@
-{ pkgs, lib, ... }:
-{
- imports = [
- <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
- ./wifi.nix
- ./sound.nix
- ];
- boot.loader.grub.enable = true;
- boot.loader.grub.version = 2;
- boot.loader.grub.efiSupport = true;
- boot.loader.grub.device = "/dev/sda";
- boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "sd_mod" ];
- boot.kernelModules = [ "kvm-amd" ];
- disko.devices = import ./disk.nix;
-
- hardware.enableRedistributableFirmware = true;
- hardware.cpu.amd.updateMicrocode = true;
- nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
- powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
-
- boot.kernelParams = [ "net.ifnames=0" ];
- networking.hostId = "0123AABB";
-
-}
diff --git a/makefu/1systems/snake/sound.nix b/makefu/1systems/snake/sound.nix
deleted file mode 100644
index 452f4b4b1..000000000
--- a/makefu/1systems/snake/sound.nix
+++ /dev/null
@@ -1,51 +0,0 @@
-{ lib, ... }: {
- imports = [
- <stockholm/makefu/2configs/gui/snake-kiosk.nix>
- ];
- nixpkgs.config.allowUnfree = true;
- networking.networkmanager.enable = lib.mkForce false;
- # sound.enable = true;
- #hardware.pulseaudio = {
- # enable = true;
- # systemWide = true;
- # tcp = {
- # enable = true;
- # anonymousClients.allowAll = true;
- # };
- #};
-
- #users.users.makefu = {
- # extraGroups = [ "pipewire" "audio" ];
- #};
-
-
- #services.xserver = {
- # enable = true;
- # # desktopManager.xterm.enable = true;
- # desktopManager.xfce = {
- # enable = true;
- # noDesktop = true;
- # };
-
- # displayManager.autoLogin = {
- # enable = true;
- # user = "makefu";
- # };
- #};
- hardware.pulseaudio.enable = lib.mkForce false;
- security.rtkit.enable = true;
- #services.pipewire = {
- # enable = true;
- # systemWide = true;
- # socketActivation = false;
- # alsa.enable = true;
- # alsa.support32Bit = true;
- # pulse.enable = true;
- # config.pipewire-pulse = {
- # "pulse.properties"."server.address" = [ "unix:native" "tcp:4713" ];
- # };
-
- #};
-
-
-}
diff --git a/makefu/1systems/snake/source.nix b/makefu/1systems/snake/source.nix
deleted file mode 100644
index 8fc2fff2d..000000000
--- a/makefu/1systems/snake/source.nix
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- name="cake";
- full = true;
- home-manager = true;
- hw = true;
-}
diff --git a/makefu/1systems/snake/wifi.nix b/makefu/1systems/snake/wifi.nix
deleted file mode 100644
index 7e1569010..000000000
--- a/makefu/1systems/snake/wifi.nix
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- networking.wireless = {
- enable = true;
- networks = import <secrets/wifi.nix>;
- };
-}