From 60b22a62cdc9bc25c3a03d0f567457ec3e2b8dcb Mon Sep 17 00:00:00 2001 From: Fabian Hauser Date: Wed, 17 Jul 2024 19:17:47 +0200 Subject: [PATCH] Remove speer system --- host/speer/default.nix | 37 ------------------------------------- host/speer/filesystems.nix | 33 --------------------------------- host/speer/networking.nix | 8 -------- host/speer/printing.nix | 18 ------------------ 4 files changed, 96 deletions(-) delete mode 100644 host/speer/default.nix delete mode 100644 host/speer/filesystems.nix delete mode 100644 host/speer/networking.nix delete mode 100644 host/speer/printing.nix diff --git a/host/speer/default.nix b/host/speer/default.nix deleted file mode 100644 index b236ed7..0000000 --- a/host/speer/default.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ config, pkgs, ... }: -{ - - imports = [ - ./filesystems.nix - ./networking.nix - #./printing.nix - #./backup.nix #TODO: Extract applications from desktop role - - ../../defaults/base - ../../defaults/cifs-auth-fix - ../../defaults/desktop - ../../defaults/hardware/amd-board.nix - ../../defaults/hardware/ecc-memory.nix - #../../defaults/printing - ]; - - virtualisation = { - # TODO: This should probably be somewhere else. - docker = { - enable = true; - enableOnBoot = false; - }; - libvirtd.enable = true; - }; - - # Set your time zone. - time.timeZone = "Europe/Amsterdam"; - - # This value determines the NixOS release from which the default - # settings for stateful data, like fi:le locations and database versions - # on your system were taken. It‘s perfectly fine and recommended to leave - # this value at the release version of the first install of this system. - # Before changing this value read the documentation for this option - # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). - system.stateVersion = "22.11"; # Did you read the comment? -} diff --git a/host/speer/filesystems.nix b/host/speer/filesystems.nix deleted file mode 100644 index 1ff870c..0000000 --- a/host/speer/filesystems.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ - config, - pkgs, - lib, - ... -}: -{ - boot.initrd.luks.devices.system.device = "/dev/disk/by-uuid/bf353bb1-43bf-453f-ae7e-0fa9b4d8778c"; - boot.initrd.kernelModules = [ "dm-snapshot" ]; - - fileSystems = { - "/" = { - device = "/dev/disk/by-uuid/661ad230-72da-4326-bb3a-4965006475f8"; - fsType = "btrfs"; - options = [ "subvol=nixos" ]; - }; - "/home" = { - device = "/dev/disk/by-uuid/661ad230-72da-4326-bb3a-4965006475f8"; - fsType = "btrfs"; - options = [ "subvol=home" ]; - }; - "/boot" = { - device = "/dev/disk/by-uuid/A5C5-1372"; - fsType = "vfat"; - }; - }; - - swapDevices = [ ]; - - # Use the systemd-boot EFI boot loader. - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; -} diff --git a/host/speer/networking.nix b/host/speer/networking.nix deleted file mode 100644 index 3e0c936..0000000 --- a/host/speer/networking.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ config, pkgs, ... }: -{ - networking = { - networkmanager.enable = true; - useDHCP = false; - hostName = "speer"; - }; -} diff --git a/host/speer/printing.nix b/host/speer/printing.nix deleted file mode 100644 index 9f89cb2..0000000 --- a/host/speer/printing.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ config, pkgs, ... }: - -{ - hardware.printers.ensureDefaultPrinter = "hsr-mfp-8261"; - hardware.printers.ensurePrinters = [ - { - name = "hsr-mfp-8261"; - deviceUri = "smb://hsr.ch/printsrv-d.hsr.ch/d8261-a4mfp"; - location = "HSR 8.261"; - model = "HP/hp-color_laserjet_mfp_m577-ps.ppd.gz"; - ppdOptions = { - Duplex = "DuplexNoTumble"; - PageSize = "A4"; - auth-info-required = "username,password"; - }; - } - ]; -}