summaryrefslogtreecommitdiffstats
path: root/systems/jontop
diff options
context:
space:
mode:
Diffstat (limited to 'systems/jontop')
-rw-r--r--systems/jontop/default.nix30
-rw-r--r--systems/jontop/filesystem.nix16
-rw-r--r--systems/jontop/hardware-configuration.nix7
3 files changed, 53 insertions, 0 deletions
diff --git a/systems/jontop/default.nix b/systems/jontop/default.nix
new file mode 100644
index 0000000..1ce9aaf
--- /dev/null
+++ b/systems/jontop/default.nix
@@ -0,0 +1,30 @@
+{ inputs, config, lib, modulesPath, pkgs, ... }:
+
+{
+ imports =
+ [ # Include the results of the hardware scan.
+ (modulesPath + "/installer/scan/not-detected.nix")
+ inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x220
+ ./filesystem.nix
+ ];
+
+ boot.loader.systemd-boot.enable = true;
+ boot.loader.efi.canTouchEfiVariables = true;
+
+ boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" ];
+ boot.initrd.kernelModules = [ "i915" ];
+ boot.kernelModules = [ "kvm-intel" ];
+ boot.extraModulePackages = [ ];
+
+ hardware.opengl = {
+ enable = true;
+ };
+
+ hardware.bluetooth.enable = true;
+ services.blueman.enable = true;
+
+ programs.light.enable = true;
+
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+ hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+}
diff --git a/systems/jontop/filesystem.nix b/systems/jontop/filesystem.nix
new file mode 100644
index 0000000..5117680
--- /dev/null
+++ b/systems/jontop/filesystem.nix
@@ -0,0 +1,16 @@
+{ ... }:
+{
+ fileSystems."/" =
+ { device = "/dev/disk/by-uuid/72e455f9-4b10-4cb2-a8e4-cfe39c4a8d1f";
+ fsType = "btrfs";
+ };
+
+ fileSystems."/boot" =
+ { device = "/dev/disk/by-uuid/27F7-4AFD";
+ fsType = "vfat";
+ };
+
+ swapDevices =
+ [ { device = "/dev/disk/by-uuid/4133a381-ab7d-4a25-9013-3f4b2d31bc5a"; }
+ ];
+}
diff --git a/systems/jontop/hardware-configuration.nix b/systems/jontop/hardware-configuration.nix
new file mode 100644
index 0000000..62427e0
--- /dev/null
+++ b/systems/jontop/hardware-configuration.nix
@@ -0,0 +1,7 @@
+# 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, ... }:
+
+{
+}