diff --git a/README.md b/README.md index 6c1a56b..f8ff59f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ # nixos -My NixOS config \ No newline at end of file +My NixOS config + +``` +git clone https://git.hektormisplon.xyz/hektor/nix.git +cd nix +sudo nix run 'github:nix-community/disko/latest#disko-install' -- --flake .#vm --disk root /dev/vda +``` diff --git a/hosts/vm/configuration.nix b/hosts/vm/configuration.nix index 7eb7924..891e5e3 100644 --- a/hosts/vm/configuration.nix +++ b/hosts/vm/configuration.nix @@ -18,6 +18,16 @@ nix.settings.experimental-features = [ "nix-command" "flakes" ]; + # These are needed for ZFS + + networking.hostId = "25698a58"; + # https://discourse.nixos.org/t/zfs-with-disko-faluire-to-import-zfs-pool/61988/3 + boot = { + zfs = { + devNodes = "/dev/disk/by-uuid"; + }; + }; + programs.git.enable = true; programs.firefox.enable = true; diff --git a/hosts/vm/disk.nix b/hosts/vm/disk.nix index a6756f3..accc839 100644 --- a/hosts/vm/disk.nix +++ b/hosts/vm/disk.nix @@ -1 +1 @@ -import ../modules/disko.zfs-encrypted-root.nix +import ../../modules/disko.zfs-encrypted-root.nix diff --git a/hosts/vm/home.nix b/hosts/vm/home.nix index 15652c6..1b6951a 100644 --- a/hosts/vm/home.nix +++ b/hosts/vm/home.nix @@ -6,7 +6,7 @@ home.username = "h"; home.homeDirectory = "/home/h"; - home.file.".inputrc".source = ./dots/.inputrc; + home.file.".inputrc".source = ../../dots/.inputrc; programs.home-manager.enable = true; }