nix: use disko as a module

This commit is contained in:
Primrose 2024-07-26 19:09:08 +02:00
parent 5be02dc55f
commit 2fedc3d1b5
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
4 changed files with 29 additions and 5 deletions

View file

@ -174,6 +174,8 @@ in
system = "x86_64-linux";
modules = [
self.nixosModules.i_am_builder
inputs.disko.nixosModules.default
self.diskoConfigurations.carbon
{
home-manager.users.leana = {
programs.neovim.extraLangServers.enable = true;
@ -210,7 +212,7 @@ in
imports = [ "${toString modulesPath}/installer/cd-dvd/installation-cd-minimal.nix" ];
isoImage.squashfsCompression = "zstd -Xcompression-level 3";
environment.systemPackages = [
pkgs.disko
inputs.disko.packages.${system}.disko
pkgs.fish
pkgs.git
pkgs.pastebinit # for sharing cli output & debugging

View file

@ -5,7 +5,7 @@
disk = {
main = {
type = "disk";
device = throw "Override me or change me";
device = "/dev/sda";
content = {
type = "gpt";
partitions = {
@ -26,9 +26,6 @@
name = "crypted";
extraOpenArgs = [ ];
settings = {
# # if you want to use the key for interactive login be sure there is no trailing newline
# # for example use `echo -n "password" > /tmp/secret.key`
# keyFile = "/tmp/secret.key";
askPassword = true;
allowDiscards = true;
};