1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-23 16:11:51 +03:00

Add doi flk command

This commit is contained in:
Jarosław Wygoda 2021-06-02 18:32:52 +02:00 committed by Parthiv Seetharaman
parent 124fb604ef
commit 61321c40cf
3 changed files with 11 additions and 1 deletions

View File

@ -113,6 +113,5 @@
};
};
};
}

View File

@ -19,6 +19,7 @@ usage () {
"up" "Generate $DEVSHELL_ROOT/hosts/up-$HOSTNAME.nix" \
"update [INPUT]" "Update and commit the lock file, or specific input" \
"get (core|community) [DEST]" "Copy the desired template to DEST" \
"doi HOST" "Generate DigitalOcean image of HOST" \
"iso HOST" "Generate an ISO image of HOST" \
"install HOST [ARGS]" "Shortcut for nixos-install" \
"home HOST USER [switch]" "Home-manager config of USER from HOST" \
@ -72,6 +73,12 @@ case "$1" in
fi
;;
"doi")
nix build \
"$DEVSHELL_ROOT#nixosConfigurations.$2.config.system.build.digitalOcean" \
"${@:3}"
;;
"iso")
nix build \
"$DEVSHELL_ROOT#nixosConfigurations.$2.config.system.build.iso" \

View File

@ -25,5 +25,9 @@ in
}
];
})).config.home-manager.users;
digitalOcean = (mkBuild ({ modulesPath, ... }: {
imports = [ "${modulesPath}/virtualisation/digital-ocean-image.nix" ];
})).config.system.build.digitalOceanImage;
};
}