Compare commits

...

2 commits

Author SHA1 Message Date
Jermeiah S
4150979697
fix: remove unused imports 2025-06-14 06:13:43 -04:00
Jermeiah S
dc93ae7c0c
migrate disko
not currently used due to lxc assumption
2025-06-14 06:13:43 -04:00
4 changed files with 52 additions and 50 deletions

View file

@ -1,6 +1,5 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
disko.devices.disk.main.device = "/dev/vda";
services.tty-ips.enable = true; services.tty-ips.enable = true;
networking.yggdrasil = { networking.yggdrasil = {

View file

@ -11,7 +11,5 @@ in
self.nixosModules.default self.nixosModules.default
"${modulesPath}/virtualisation/lxc-container.nix" "${modulesPath}/virtualisation/lxc-container.nix"
./configuration.nix ./configuration.nix
./hardware-configuration.nix
./disko.nix
]; ];
} }

View file

@ -1,47 +0,0 @@
{
lib,
config,
...
}:
{
boot.loader.grub.efiSupport = lib.mkDefault true;
boot.loader.grub.efiInstallAsRemovable = lib.mkDefault true;
disko.devices = {
disk = {
"main" = {
# suffix is to prevent disk name collisions
name = "main-" + config.networking.hostName;
type = "disk";
# device = <uuid>;
content = {
type = "gpt";
partitions = {
"boot" = {
size = "1M";
type = "EF02"; # for grub MBR
priority = 1;
};
"ESP" = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "nofail" ];
};
};
"root" = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
}

View file

@ -0,0 +1,52 @@
{
lib,
config,
...
}:
{
# disko.devices.disk.main.device = "/dev/vda";
options.internal.disko.default.enable = lib.mkEnableOption "";
config = lib.mkIf config.internal.disko.default.enable {
boot.loader.grub.efiSupport = lib.mkDefault true;
boot.loader.grub.efiInstallAsRemovable = lib.mkDefault true;
disko.devices = {
disk = {
"main" = {
# suffix is to prevent disk name collisions
name = "main-" + config.networking.hostName;
type = "disk";
# device = <uuid>;
content = {
type = "gpt";
partitions = {
"boot" = {
size = "1M";
type = "EF02"; # for grub MBR
priority = 1;
};
"ESP" = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "nofail" ];
};
};
"root" = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
};
}