summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-06-21 22:14:43 -0400
committerFreya Murphy <freya@freyacat.org>2025-06-21 22:14:43 -0400
commit389670009962b2ce9be7f9e19430ac9d630ffd94 (patch)
tree40721026db9e9eb9de912cc05498a7c3bda25ea8 /hosts
parentadd dev shell to flake (diff)
downloaddotfiles-nix-389670009962b2ce9be7f9e19430ac9d630ffd94.tar.gz
dotfiles-nix-389670009962b2ce9be7f9e19430ac9d630ffd94.tar.bz2
dotfiles-nix-389670009962b2ce9be7f9e19430ac9d630ffd94.zip
add thinkpad host
Diffstat (limited to 'hosts')
-rw-r--r--hosts/thinkpad.nix70
1 files changed, 70 insertions, 0 deletions
diff --git a/hosts/thinkpad.nix b/hosts/thinkpad.nix
new file mode 100644
index 0000000..bb7a75a
--- /dev/null
+++ b/hosts/thinkpad.nix
@@ -0,0 +1,70 @@
+# Thinkpad
+#System configuration for my thinkpad
+{
+ inputs,
+ options,
+ ...
+}:
+inputs.nixpkgs.lib.nixosSystem rec {
+ system = "x86_64-linux";
+ specialArgs = {inherit inputs;};
+ modules = [
+ options
+ ../config
+ ../home
+ ../programs
+ ../system
+ {
+ # options
+ hostName = "thinkpad";
+ monitors = [
+ {
+ name = "eDP-1";
+ scale = 1.0;
+ }
+ ];
+
+ # hardware
+ hardware.graphics.enable = true;
+ hardware.bluetooth.enable = true;
+
+ # bootloader
+ boot.loader.systemd-boot.enable = true;
+ boot.loader.efi = {
+ canTouchEfiVariables = true;
+ efiSysMountPoint = "/boot/efi";
+ };
+
+ # kernel modules
+ boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "sd_mod"];
+ boot.initrd.kernelModules = [];
+ boot.kernelModules = ["kvm-intel"];
+ boot.extraModulePackages = [];
+
+ # firmware
+ hardware.enableRedistributableFirmware = true;
+ hardware.cpu.intel.updateMicrocode = true;
+
+ # luks device
+ boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/fe5e24c0-d35d-4722-929d-1496b7eb9872";
+
+ # root
+ fileSystems."/" = {
+ device = "/dev/disk/by-uuid/e7bdadd0-0914-42ea-81c4-4449537d3477";
+ fsType = "btrfs";
+ };
+
+ # boot
+ fileSystems."/boot/efi" = {
+ device = "/dev/disk/by-uuid/6CE8-EFE0";
+ fsType = "vfat";
+ options = ["fmask=0022" "dmask=0022"];
+ };
+
+ # swap
+ swapDevices = [
+ {device = "/dev/disk/by-uuid/01099db8-dd7a-4fe5-981a-6889fdb3735e";}
+ ];
+ }
+ ];
+}