hosts: add tower

This commit is contained in:
Charlie Root 2025-03-02 19:35:22 +01:00
commit af1cf905eb
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw
5 changed files with 106 additions and 0 deletions

View file

@ -0,0 +1,51 @@
{
lib,
pkgs,
...
}: {
# Time Zone
time.timeZone = "Europe/Vienna";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
console.keyMap = "uk";
security.polkit.enable = true;
# boot.kernelPackages = pkgs.linuxPackagesFor xanmod_blox;
boot.kernelPackages = pkgs.linuxPackages_xanmod_latest;
programs.nix-ld.enable = true;
services = {
fstrim.enable = lib.mkDefault true;
};
meta = {
mainUser.gitSigningKey = "";
};
modules = {
system = {
programs = {
editors = {
helix.enable = true;
};
eza.enable = true;
};
};
usrEnv = {
desktops.hyprland.enable = false;
services = {
locate.enable = true;
};
};
other = {
system = {
username = "cr";
};
};
programs = {
ssh.enable = true;
btop.enable = true;
nh.enable = true;
};
# style.colorScheme.name = "Black Metal Venom";
};
}

8
hosts/tower/default.nix Normal file
View file

@ -0,0 +1,8 @@
_: {
imports = [
./configuration.nix
./programs.nix
./hardware-configuration.nix
./filesystem
];
}

View file

@ -0,0 +1,16 @@
{
config = {
fileSystems = {
"/boot" = {
device = "/dev/disk/by-uuid/3480-C94B";
fsType = "vfat";
};
# root on tmpfs
"/" = {
device = "/dev/disk/by-uuid/3dde50ca-440d-4d46-974e-efc623e53703";
fsType = "btrfs";
options = ["compress=zstd" "noatime"];
};
};
};
}

View file

@ -0,0 +1,24 @@
{
config,
lib,
modulesPath,
...
}: {
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = [];
boot.extraModulePackages = [];
# 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.enp4s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
}

7
hosts/tower/programs.nix Normal file
View file

@ -0,0 +1,7 @@
{pkgs, ...}: {
environment.systemPackages = builtins.attrValues {
inherit
(pkgs)
;
};
}