From fe6e5d4c57daa4f56efaf518c3686918c69c59e7 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Thu, 20 Mar 2025 14:27:04 +0100 Subject: [PATCH] feat: adds `dandelion` host --- hosts/dandelion/default.nix | 27 +++++++++++++++ hosts/dandelion/hardware-configuration.nix | 39 ++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 hosts/dandelion/default.nix create mode 100644 hosts/dandelion/hardware-configuration.nix diff --git a/hosts/dandelion/default.nix b/hosts/dandelion/default.nix new file mode 100644 index 0000000..9f60ae9 --- /dev/null +++ b/hosts/dandelion/default.nix @@ -0,0 +1,27 @@ +{ pkgs, config, ... }: +{ + imports = [ + ./hardware-configuration.nix + ./../../modules/core/default.dandelion.nix + ]; + + networking.hostName = "dandelion"; + + nixpkgs.config.permittedInsecurePackages = [ + "jitsi-meet-1.0.8043" + "olm-3.2.16" + ]; + + time.timeZone = "Europe/Amsterdam"; + + environment.systemPackages = with pkgs; [ + pkgs.kitty.terminfo + ]; + + boot = { + loader.systemd-boot = { + enable = true; + canTouchEfiVariables = true; + }; + }; +} diff --git a/hosts/dandelion/hardware-configuration.nix b/hosts/dandelion/hardware-configuration.nix new file mode 100644 index 0000000..6b43eb0 --- /dev/null +++ b/hosts/dandelion/hardware-configuration.nix @@ -0,0 +1,39 @@ +# 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" "uhci_pci" "usbhid" "usb_storage" "sd_mod" ]; + kernelModules = [ ]; + }; + kernelModules = [ "kvm-intel" ]; + extraModulePackages = [ ]; + }; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/adb2894c-18f5-466a-b340-70b71b479f51"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/D8DA-9F5E"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = [ ]; + + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.eno1.useDHCP = lib.mkDefault true; + # networking.interfaces.eno2.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}