From 816eeb6c3a14f3dfb3c0d9a9c2d0760a1d0722d1 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Sat, 28 Mar 2026 14:57:46 +0000 Subject: [PATCH] --- apps/zen.nix | 2 +- hosts/hardware/FredOS-Gaming.nix | 37 ++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 hosts/hardware/FredOS-Gaming.nix diff --git a/apps/zen.nix b/apps/zen.nix index 436ab73..e2f75d5 100644 --- a/apps/zen.nix +++ b/apps/zen.nix @@ -1,4 +1,4 @@ -#apps/zen.nix +#./apps/zen.nix { inputs, pkgs, lib, config, ... }: { config = lib.mkIf (lib.elem config.networking.hostName [ "FredOS-Gaming" "FredOS-Macbook" ]) { diff --git a/hosts/hardware/FredOS-Gaming.nix b/hosts/hardware/FredOS-Gaming.nix new file mode 100644 index 0000000..eb61896 --- /dev/null +++ b/hosts/hardware/FredOS-Gaming.nix @@ -0,0 +1,37 @@ +#./hosts/hardware/FredOS-Gaming.nix +{ config, lib, pkgs, modulesPath, ... }: +{ + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/e2731038-9c65-430a-8628-b018cd6b8d9f"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/7887-68BE"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + + networking.hostName = "FredOS-Gaming"; + + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + + system.stateVersion = "25.11"; +} \ No newline at end of file