Skip to content

Commit

Permalink
feat(cetus): implement
Browse files Browse the repository at this point in the history
  • Loading branch information
airone01 committed Nov 24, 2024
1 parent a2e0c1d commit b154654
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions .commitlintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ rules:
- cassiopeia
- aquarius
- ursamajor
- cetus
# Core components
- sops
- stars
Expand Down
18 changes: 18 additions & 0 deletions constellations/cetus/configuration.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{stars, ...}: {
networking.hostName = "cetus";
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-sops
dev-core
dev-garnix
r1-git
];
}
41 changes: 41 additions & 0 deletions constellations/cetus/hardware-configuration.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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 + "/installer/scan/not-detected.nix")
];

boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "megaraid_sas" "xhci_pci" "usbhid" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];

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

fileSystems."/boot" =
{ device = "/dev/disk/by-label/NIXBOOT";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};

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.eno1.useDHCP = lib.mkDefault true;
# networking.interfaces.enp10s0f0.useDHCP = lib.mkDefault true;
# networking.interfaces.enp10s0f1.useDHCP = lib.mkDefault true;
# networking.interfaces.enp8s0.useDHCP = lib.mkDefault true;

nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

0 comments on commit b154654

Please sign in to comment.