summaryrefslogtreecommitdiff
path: root/hosts/bean/pinto.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/bean/pinto.nix')
-rw-r--r--hosts/bean/pinto.nix26
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; }
+ ];
+}