Skip to content

Commit

Permalink
add hephaistos
Browse files Browse the repository at this point in the history
  • Loading branch information
anna328p committed Nov 21, 2024
1 parent ef48f3e commit 797beb4
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@
hermes = systems/hermes;
theseus = systems/theseus;

hephaistos = systems/hephaistos;

arachne = systems/arachne;
angelia = systems/angelia;
heracles = systems/heracles;
Expand Down Expand Up @@ -246,6 +248,8 @@
theseus = [ systems.theseus ];
theseus-small = theseus ++ [ common.misc.small ];

hephaistos = [ systems.hephaistos ];

heracles = [ systems.heracles ];
arachne = [ systems.arachne ];
angelia = [ systems.angelia ];
Expand Down
30 changes: 30 additions & 0 deletions systems/hephaistos/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{ lib, flakes, localModules, ... }:

{
imports = let
inherit (localModules) common;
in [
common.base
common.physical
common.server

./disks.nix

common.misc.ftp
];

nixpkgs.hostPlatform = lib.systems.examples.gnu64;

system.etc.overlay.enable = false;

networking = {
hostName = "hephaistos";
hostId = "a9ff4923";
};

misc.uuid = "cf51a7f4-c533-4d64-a7ce-034ea9ff4923";

time.timeZone = "Etc/UTC";

system.stateVersion = "24.11";
}
47 changes: 47 additions & 0 deletions systems/hephaistos/disks.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{ localModules, ... }:

let
uuids = {
boot = "11f5382d-869e-4457-bdb5-f9002e1c505d";
swap = "548ae092-f991-448e-817f-adaa538c2db9";
};

devs = builtins.mapAttrs
(_: uuid: "/dev/disk/by-partuuid/${uuid}")
uuids;
in {
imports = let
inherit (localModules) common;
in [
common.impermanent
];

intransience.datastores = {
system.path = "/safe/system";
home.path = "/safe/system/home";
home.enable = false;
cache.path = "/volatile/cache";
};

fileSystems = let
dataset = subpath: {
fsType = "zfs";
device = "rpool/${subpath}";
neededForBoot = true;
};
in {
# EFI System Partition
"/boot" = { device = devs.boot; };

# Nix store
"/nix" = dataset "volatile/nix";

# Persistent data
"/safe/system" = dataset "safe/system";
"/volatile/cache" = dataset "volatile/cache";
};

swapDevices = [
{ device = devs.swap; }
];
}

0 comments on commit 797beb4

Please sign in to comment.