diff options
author | Simon Parri <simonparri@ganzeria.com> | 2025-06-14 15:01:30 -0500 |
---|---|---|
committer | Simon Parri <simonparri@ganzeria.com> | 2025-06-14 15:01:30 -0500 |
commit | 4e970f7cc35d2747af0baa6fca9df5abc18bee43 (patch) | |
tree | 4d1b5b1550d487c246cc90e7b0b735989958f6b5 /hosts/bean/pinto.nix | |
parent | fdd799bf06c5d40cb8a3e8292ee76bff265765f9 (diff) | |
download | nixos-config-4e970f7cc35d2747af0baa6fca9df5abc18bee43.tar.gz nixos-config-4e970f7cc35d2747af0baa6fca9df5abc18bee43.zip |
hosts: Rename ades/* to bean/*
Diffstat (limited to 'hosts/bean/pinto.nix')
-rw-r--r-- | hosts/bean/pinto.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/hosts/bean/pinto.nix b/hosts/bean/pinto.nix new file mode 100644 index 0000000..ab00833 --- /dev/null +++ b/hosts/bean/pinto.nix @@ -0,0 +1,26 @@ +{ lib, ... }: + +let swapPart = "/dev/sda2"; +in +{ + boot.loader.grub = { + enable = true; + devices = ["/dev/sda"]; + }; + + boot.resumeDevice = swapPart; + + fileSystems."/" = lib.mkForce { + device = "/dev/sda1"; + fsType = "ext4"; + }; + + fileSystems."/home" = lib.mkForce { + device = "/dev/sda3"; + fsType = "ext4"; + }; + + swapDevices = [ + { device = swapPart; } + ]; +} |