Fix taskfiel

This commit is contained in:
2025-10-28 16:59:22 +01:00
parent c3f1877067
commit 747374133e
2 changed files with 8 additions and 7 deletions

View File

@@ -1,7 +1,4 @@
# Do not modify this file! It was generated by nixos-generate-config { lib, pkgs, modulesPath, ... }:
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{ {
imports = imports =
@@ -26,7 +23,7 @@
}; };
fileSystems."/nix" = fileSystems."/nix" =
{ device = "/dev/disk/by-label/virtual"; { device = "/dev/disk/by-label/nix";
fsType = "ext4"; fsType = "ext4";
}; };

View File

@@ -19,15 +19,19 @@ tasks:
# Install stuff # Install stuff
install: install:*:
desc: install to disks labeled `nix` and `boot` desc: install to disks labeled `nix` and `boot`
deps: [password:root, password:zoriya] deps: [password:root, password:zoriya]
vars:
HOST: "{{index .MATCH 0}}"
cmds: cmds:
- mkdir -p /mnt/{boot,nix}
- mount /dev/disk/by-label/boot /mnt/boot - mount /dev/disk/by-label/boot /mnt/boot
- mount /dev/disk/by-label/nix /mnt/nix - mount /dev/disk/by-label/nix /mnt/nix
- task: swap - task: swap
- defer: { task: swap-off } - 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:*: password:*:
desc: setup passwords desc: setup passwords