From 2566c3b750a6a0550a70a262903cae4ec606a745 Mon Sep 17 00:00:00 2001 From: illustris Date: Mon, 24 Oct 2022 18:35:55 +0530 Subject: [PATCH] change ZFS mountpoints --- configuration.nix | 2 +- flake.nix | 1 - hardware-configuration.nix | 18 +++++++++--------- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/configuration.nix b/configuration.nix index 8dc9a13..371382d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -32,7 +32,7 @@ in }; supportedFilesystems = [ "zfs" "ntfs" ]; - zfs.devNodes = "/dev/disk/by-partuuid"; + zfs.devNodes = "/dev/disk/by-path"; }; time.timeZone = "Asia/Kolkata"; diff --git a/flake.nix b/flake.nix index eda83ac..27603b9 100644 --- a/flake.nix +++ b/flake.nix @@ -3,7 +3,6 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; - # nixpkgs1.url = "/home/illustris/src/nixpkgs"; home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; diff --git a/hardware-configuration.nix b/hardware-configuration.nix index 6525d9a..9b04ac3 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -15,47 +15,47 @@ fileSystems = { "/" = { - device = "ssd/rootfs"; + device = "desktop-nvme/rootfs"; fsType = "zfs"; }; "/home" = { - device = "ssd/home"; + device = "desktop-nvme/home"; fsType = "zfs"; }; "/nix" = { - device = "ssd/nix"; + device = "desktop-nvme/nix"; fsType = "zfs"; }; "/root" = { - device = "ssd/home/root"; + device = "desktop-nvme/home/root"; fsType = "zfs"; }; "/tmp" = { - device = "ssd/tmp"; + device = "desktop-nvme/tmp"; fsType = "zfs"; }; "/var" = { - device = "ssd/var"; + device = "desktop-nvme/var"; fsType = "zfs"; }; "/var/lib" = { - device = "ssd/var/lib"; + device = "desktop-nvme/var/lib"; fsType = "zfs"; }; "/var/log" = { - device = "ssd/var/log"; + device = "desktop-nvme/var/log"; fsType = "zfs"; }; "/boot" = { - device = "/dev/disk/by-uuid/453B-D3CD"; + device = "/dev/disk/by-uuid/9807-6F26"; fsType = "vfat"; }; };