diff --git a/hosts/virtual/hardware-configuration.nix b/hosts/virtual/hardware-configuration.nix index ed170d7..254b8c5 100644 --- a/hosts/virtual/hardware-configuration.nix +++ b/hosts/virtual/hardware-configuration.nix @@ -1,7 +1,4 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: +{ lib, pkgs, modulesPath, ... }: { imports = @@ -26,7 +23,7 @@ }; fileSystems."/nix" = - { device = "/dev/disk/by-label/virtual"; + { device = "/dev/disk/by-label/nix"; fsType = "ext4"; }; diff --git a/taskfile.yaml b/taskfile.yaml index c5fceac..907f8cc 100644 --- a/taskfile.yaml +++ b/taskfile.yaml @@ -19,15 +19,19 @@ tasks: # Install stuff - install: + install:*: desc: install to disks labeled `nix` and `boot` deps: [password:root, password:zoriya] + vars: + HOST: "{{index .MATCH 0}}" cmds: + - mkdir -p /mnt/{boot,nix} - mount /dev/disk/by-label/boot /mnt/boot - mount /dev/disk/by-label/nix /mnt/nix - task: swap - defer: { task: swap-off } - - nixos-install --no-channel-copy --no-root-password + - mkdir -p /mnt/nix/persist/tmp + - TMPDIR=/mnt/nix/persist/tmp nixos-install --no-channel-copy --no-root-password --flake path:.#{{.HOST}} password:*: desc: setup passwords