mirror of
https://github.com/zoriya/flake.git
synced 2025-12-06 06:36:19 +00:00
Fix taskfiel
This commit is contained in:
@@ -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";
|
||||
};
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user