renamed hosts and working on multi user conf

This commit is contained in:
Chris Kruining 2025-03-18 14:37:23 +01:00
parent a603eb08a4
commit f7891e1f30
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
21 changed files with 208 additions and 75 deletions

4
hosts/ulmo/README.md Normal file
View file

@ -0,0 +1,4 @@
# Description
My current server, reasoning for the name being the following chain of thought:
**Ulmo -> the king of the sea -> the sea provides -> services are provided -> server runs services**

49
hosts/ulmo/default.nix Normal file
View file

@ -0,0 +1,49 @@
{ config, lib, pkgs, ... }:
{
imports = [ ./hardware.nix ];
fileSystems."/var/media_from_conf" = {
device = "/dev/disk/by-label/data";
fsType = "ext4";
};
modules = {
themes = {
enable = true;
theme = "everforest";
polarity = "dark";
};
networking.enable = true;
networking.ssh.enable = true;
services = {
enable = true;
media.enable = true;
games = {
minecraft.enable = true;
};
};
desktop = {
plasma.enable = true;
type = "wayland";
terminal = {
default = "alacritty";
alacritty.enable = true;
};
editors = {
default = "nano";
nano.enable = true;
};
};
shell = {
default = "zsh";
corePkgs.enable = true;
};
};
}

33
hosts/ulmo/hardware.nix Normal file
View file

@ -0,0 +1,33 @@
{ config, lib, pkgs, modulesPath, ... }:
let
inherit (lib.modules) mkDefault;
in
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/dd518f17-61c9-4831-b1bd-e1cc2af292aa";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/0A56-EBFE";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices = [ ];
boot = {
initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
initrd.kernelModules = [ ];
kernelModules = [ "kvm-intel" ];
kernelParams = [];
extraModulePackages = [ ];
};
networking.useDHCP = mkDefault true;
nixpkgs.hostPlatform = mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = mkDefault config.hardware.enableRedistributableFirmware;
}