enabling disko for some profiles

This commit is contained in:
Don Harper 2024-06-08 11:22:59 -05:00
parent becb449b25
commit 3c79934ce1
10 changed files with 125 additions and 22 deletions

View file

@ -4,7 +4,9 @@
imports =
[
./hardware-configuration.nix
../disko/mmcblk.nix
../workstation
../themes.nix
../wm
];
networking.hostName = "ace";

View file

@ -14,18 +14,18 @@
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/31c01307-0e0b-4f01-8c0e-04bd70698a28";
{ device = "/dev/mmcblk0p2";
fsType = "ext4";
};
fileSystems."/boot/efi" =
{ device = "/dev/disk/by-uuid/7714-A10A";
fileSystems."/boot" =
{ device = "/dev/mmcblk0p1";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/8c445831-23e0-4508-85d0-54ea8cd3f80b"; }
];
# swapDevices =
# [ { device = "/dev/disk/by-uuid/8c445831-23e0-4508-85d0-54ea8cd3f80b"; }
# ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's

33
hosts/disko/mmcblk.nix Normal file
View file

@ -0,0 +1,33 @@
{
disko.devices = {
disk = {
vdb = {
device = "/dev/mmcblk0";
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
type = "EF00";
size = "2G";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
}

33
hosts/disko/nvme.nix Normal file
View file

@ -0,0 +1,33 @@
{
disko.devices = {
disk = {
vdb = {
device = "/dev/nvme0n1";
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
type = "EF00";
size = "2G";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
}

33
hosts/disko/sda.nix Normal file
View file

@ -0,0 +1,33 @@
{
disko.devices = {
disk = {
vdb = {
device = "/dev/sda";
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
type = "EF00";
size = "2G";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
}

View file

@ -4,7 +4,9 @@
imports =
[
./hardware-configuration.nix
../disko/mmcblk.nix
../workstation
../themes.nix
../wm
];
networking.hostName = "eve";

View file

@ -14,18 +14,18 @@
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/3b13f80d-64f5-491c-b5d4-9bfb376e6f6c";
{ device = "/dev/mmcblk0p2";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/9492-C4B2";
{ device = "/dev/mmcblk0p1";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/a7ae7629-f44f-4298-bf31-59c51cd95658"; }
];
# swapDevices =
# [ { device = "/dev/disk/by-uuid/a7ae7629-f44f-4298-bf31-59c51cd95658"; }
# ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's

View file

@ -4,6 +4,7 @@
imports =
[
./hardware-configuration.nix
../disko/nvme.nix
../workstation
../workstation/kvm.nix
../wm

View file

@ -14,12 +14,12 @@
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/2a362c6a-109a-4017-be40-1ad9a7f3c8b1";
{ device = "/dev/nvme0n1p2";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/14BC-6928";
{ device = "/dev/nvme0n1p1";
fsType = "vfat";
};