create automatic partition installer

This commit is contained in:
Noah Masur
2022-06-05 09:24:46 -04:00
parent 8d50690a79
commit f4786156de
2 changed files with 49 additions and 2 deletions

View File

@ -48,8 +48,7 @@
in {
# Define my systems
# You can load it from an empty system with:
# You can load it from any NixOS system with:
# nix-shell -p nixFlakes
# sudo nixos-rebuild switch --flake github:nmasur/dotfiles#desktop
nixosConfigurations = {
@ -57,6 +56,16 @@
import ./hosts/desktop { inherit nixpkgs home-manager nur globals; };
};
# You can partition, format, and install with:
# nix-shell -p nixFlakes
# nix run github:nmasur/dotfiles#installer -- nvme0n1 desktop
# Will erase drives; use at your own risk!
apps = forAllSystems (system:
let pkgs = import nixpkgs { inherit system; };
in {
installer = import ./modules/system/installer.nix { inherit pkgs; };
});
# Used to run commands and edit files in this repo
devShells = forAllSystems (system:
let pkgs = import nixpkgs { inherit system; };