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’
|
{ 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";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user