mirror of
https://github.com/caperren/nixos-configs.git
synced 2025-12-31 11:34:18 +00:00
Added cap-apollo-n01
This commit is contained in:
25
hosts/cap-apollo-n01/configuration.nix
Normal file
25
hosts/cap-apollo-n01/configuration.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
# Hardware Scan
|
||||
./hardware-configuration.nix
|
||||
|
||||
# Users
|
||||
../../users/cluster-admin/caperren.nix
|
||||
|
||||
# System Configuration
|
||||
../system/cpu-intel.nix
|
||||
../system/fonts.nix
|
||||
../system/home-manager-settings.nix
|
||||
../system/internationalization.nix
|
||||
../system/networking.nix
|
||||
../system/nix-settings.nix
|
||||
../system/security.nix
|
||||
../system/systemd-boot.nix
|
||||
|
||||
# Application Groups
|
||||
../application-groups/system-utilities-cluster.nix
|
||||
];
|
||||
|
||||
networking.hostName = "cap-apollo-n01";
|
||||
}
|
||||
31
hosts/cap-apollo-n01/hardware-configuration.nix
Normal file
31
hosts/cap-apollo-n01/hardware-configuration.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
# 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 = [ "ahci" "xhci_pci" "ehci_pci" "uhci_hcd" "hpsa" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/1fa744fd-82d2-4997-a757-28ae96461a96";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/F57E-AA2D";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
@@ -11,7 +11,5 @@
|
||||
../../modules/application-groups/k3s-primary.nix
|
||||
];
|
||||
|
||||
# sops.secrets.k3s_token.sopsFile = ../../secrets/cluster.yaml;
|
||||
|
||||
networking.hostName = "cap-clust-01";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user