From cb6849ccd0b854f64552d6f2ee594220e6227d4e Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Sat, 26 Oct 2024 20:35:14 +0200 Subject: [PATCH] Remove old systems --- README.md | 4 +-- flake.nix | 98 ------------------------------------------------------- 2 files changed, 1 insertion(+), 101 deletions(-) diff --git a/README.md b/README.md index 59e9395..6efa372 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,8 @@ NixOS configuration for my personal laptop. -Currently contains config for three systems: +Currently contains config for only one systems: - **sue**: My current laptop, a Dell XPS 9315 -- **x260**: My previous laptop, a Lenovo Thinkpad x260 which is broken -- **x201**: A Lenovo Thinkpad x201 which I have as a backup system ## Features diff --git a/flake.nix b/flake.nix index 319b0ae..7607af3 100644 --- a/flake.nix +++ b/flake.nix @@ -91,99 +91,6 @@ formatter = forAllSystems (system: (treefmtEval.${system}.config.build.wrapper)); nixosConfigurations = { - x260 = mkNixosSystem { - extraModule = { - pkgs, - lib, - ... - }: { - imports = [inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x260]; - - config = { - pim.lanzaboote.enable = true; - networking.hostName = "x260"; - - fprintd = { - enable = true; - - tod = { - enable = true; - driver = pkgs.libfprint-2-tod1-vfs0090; - }; - }; - - swapDevices = [{device = "/dev/disk/by-uuid/6028bf52-404d-4143-9cb0-9b06cd60a373";}]; - powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; - boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "rtsx_pci_sdmmc"]; - }; - }; - }; - - x201 = mkNixosSystem { - extraModule = { - pkgs, - lib, - ... - }: { - imports = [inputs.disko.nixosModules.disko]; - config = { - networking.hostName = "x201"; - - boot.initrd.availableKernelModules = ["ehci_pci" "ahci" "usb_storage"]; - - disko.devices = { - disk = { - sda = { - device = "/dev/sda"; - type = "disk"; - content = { - type = "gpt"; - partitions = { - boot = { - size = "1M"; - type = "EF02"; # for grub MBR - priority = 1; # Needs to be first partition - }; - - pv_os = { - size = "100%"; - - content = { - type = "lvm_pv"; - vg = "vg_os"; - }; - }; - }; - }; - }; - }; - - lvm_vg.vg_os = { - type = "lvm_vg"; - - lvs = { - swap = { - size = "3GB"; - content.type = "swap"; - }; - - root = { - size = "100%FREE"; - - content = { - type = "filesystem"; - format = "ext4"; - mountpoint = "/"; - mountOptions = ["defaults"]; - }; - }; - }; - }; - }; - }; - }; - }; - sue-cosmic = mkNixosSystem { useDefaultConfiguration = false; extraModule = {...}: { @@ -261,11 +168,6 @@ boot.initrd.luks.devices."luks-8ffd3129-4908-4209-98c4-4eb68a35c494".device = "/dev/disk/by-uuid/8ffd3129-4908-4209-98c4-4eb68a35c494"; boot.initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "vmd" "nvme" "usb_storage"]; - - # hardware.ipu6 = { - # enable = true; - # platform = "ipu6ep"; - # }; }; }; };