iris: init
This commit is contained in:
parent
488c8fb8f9
commit
a25ab410c8
16 changed files with 483 additions and 417 deletions
14
hosts/iris/default.nix
Normal file
14
hosts/iris/default.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./disks.nix
|
||||
];
|
||||
|
||||
system.stateVersion = "25.05";
|
||||
networking.hostId = "8ab8acd3"; # "iris00" in base64->hex
|
||||
|
||||
modules.hardware.form.server = true;
|
||||
modules.backups.enable = false; # testing server
|
||||
boot.loader.timeout = 1;
|
||||
}
|
32
hosts/iris/disks.nix
Normal file
32
hosts/iris/disks.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ pkgs, lib, ... }:
|
||||
with lib.our.disko;
|
||||
{
|
||||
boot.kernelPackages = pkgs.linuxPackages;
|
||||
|
||||
boot.zfs.extraPools = [ "tank" ];
|
||||
|
||||
disko.devices = {
|
||||
nodev."/" = mkTmpfs "2G";
|
||||
disk = {
|
||||
main = mkDisk "wwn-0x6034a134b1c4432588a23b05f3802d24" {
|
||||
partitions = {
|
||||
boot = mkESP "64M" "/boot/efi";
|
||||
main = mkBtrfsPart "100%" "/media/main" {
|
||||
subvolumes = mkBtrfsSubvols {
|
||||
"/boot" = { };
|
||||
"/etc/ssh" = { };
|
||||
"/persist" = { };
|
||||
"/nix" = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fileSystems = markNeededForBoot [
|
||||
"/persist"
|
||||
"/etc/ssh"
|
||||
"/home"
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue