allow for legacy boot
This commit is contained in:
@ -26,18 +26,15 @@
|
||||
|
||||
modules = [
|
||||
inputs.disko.nixosModules.default
|
||||
{
|
||||
imports = [
|
||||
(import ./system/disko.nix {})
|
||||
];
|
||||
}
|
||||
# {
|
||||
# imports = [
|
||||
# (import ./system/disko.nix {})
|
||||
# ];
|
||||
# }
|
||||
|
||||
inputs.impermanence.nixosModules.impermanence
|
||||
|
||||
./system
|
||||
{
|
||||
system.stateVersion = "23.11";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
@ -3,6 +3,7 @@
|
||||
device ? throw "Missing required argument device. (e.g. /dev/sda)",
|
||||
swapCapacity ? throw "Missing required argument swapCapacity. (e.g. 16G)",
|
||||
ssd ? false,
|
||||
efi ? true,
|
||||
...
|
||||
}: {
|
||||
disko.devices = {
|
||||
@ -14,8 +15,14 @@
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
"esp" = {
|
||||
size = "512M";
|
||||
type = "EF00";
|
||||
size =
|
||||
if efi
|
||||
then "512M"
|
||||
else "1M";
|
||||
type =
|
||||
if efi
|
||||
then "EF00"
|
||||
else "EF02";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
|
@ -27,6 +27,7 @@
|
||||
mutableUsers = false; # Disallow creation of new users and groups
|
||||
|
||||
users."admin" = {
|
||||
password = "changeme"; # TODO: Maybe put a throw here.
|
||||
isNormalUser = true;
|
||||
extraGroups = ["wheel"];
|
||||
};
|
||||
|
Reference in New Issue
Block a user