Skip to content

Commit

Permalink
feat(hercules): implement
Browse files Browse the repository at this point in the history
  • Loading branch information
airone01 committed Nov 25, 2024
1 parent 3ee8bc5 commit 7b40a10
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 3 deletions.
1 change: 1 addition & 0 deletions .commitlintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ rules:
- aquarius
- ursamajor
- cetus
- hercules
# Core components
- sops
- stars
Expand Down
24 changes: 24 additions & 0 deletions constellations/hercules/configuration.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{stars, ...}: {
networking.hostName = "hercules";
stars.mainUser = "rack";
system.stateVersion = "24.05";
time.timeZone = "Europe/Paris";



imports = with stars; [
cli-btop
cli-eza
cli-oh-my-posh
cli-zellij
cli-zsh
core-docker
core-font
core-gh
core-sops
core-unfree
dev-core
dev-garnix
r1-git
];
}
46 changes: 46 additions & 0 deletions constellations/hercules/hardware-configuration.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:

{
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
];

boot = {
initrd = {
availableKernelModules = [ "xhci_pci" "virtio_pci" "virtio_scsi" "usbhid" ];
kernelModules = [ ];
};

kernelModules = [ ];
extraModulePackages = [ ];

loader = {
systemd-boot.enable = true;
# efi.canTouchEfiVariables = true;
};
};

fileSystems."/" =
{ device = "/dev/disk/by-label/NIXROOT";
fsType = "ext4";
};

fileSystems."/boot" =
{ device = "/dev/disk/by-label/NIXBOOT";
fsType = "vfat";
};

swapDevices = [ ];

# 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
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s6.useDHCP = lib.mkDefault true;

nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
}
10 changes: 7 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,9 @@
mkConstellationForNixosConfiguration = {
userName,
constellations,
system ? "x86_64-linux",
}:
lib.genAttrs constellations (name: let
system = "x86_64-linux";
in
lib.genAttrs constellations (name:
nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs;
Expand Down Expand Up @@ -134,6 +133,11 @@
// mkConstellationForNixosConfiguration {
userName = "rack";
constellations = ["aquarius" "cetus"];
}
// mkConstellationForNixosConfiguration {
system = "aarch64-linux";
userName = "rack";
constellations = ["hercules"];
};

# Packages, including temporary setups (ISO images)
Expand Down

0 comments on commit 7b40a10

Please sign in to comment.