fixed up things

This commit is contained in:
maya 2026-02-21 18:48:43 +08:00
parent 8358dd883e
commit aaf473a012
Signed by: maya
SSH key fingerprint: SHA256:Im2Y1O7zWsr6fcIXLTGk3tHCels6Ptm2pE3svwm5m/0
4 changed files with 102 additions and 0 deletions

View file

@ -0,0 +1,37 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
boot.kernelPackages = pkgs.linuxPackages_latest;
services.displayManager.ly = {
enable = true;
settings.animation = "colormix";
};
services.xserver.xkb = {
layout = "us";
variant = "";
};
services.printing.enable = true;
users.users.${config.var.username} = {
isNormalUser = true;
description = "Maya Wren";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
# thunderbird
];
};
#system.stateVersion = "25.11"; # Did you read the comment?
}

6
hosts/fenix/default.nix Normal file
View file

@ -0,0 +1,6 @@
{ config, pkgs, ... }:{
imports = [
./configuration.nix
../generic.nix
];
}

View file

@ -0,0 +1,37 @@
# 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 = [ "ehci_pci" "ahci" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.blacklistedKernelModules = [ "bcma" "b43" "ssb" "brcmsmac" ];
boot.kernelParams = [ "radeon.si_support=0" "amdgpu.si_support=1" ];
services.mbpfan = {
enable = true;
settings.general.max_temp = 70;
settings.general.high_temp = 55;
settings.general.low_temp = 50;
};
fileSystems."/" =
{ device = "/dev/disk/by-uuid/f5f5207a-bade-4201-baf6-19898093c459";
fsType = "xfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/4FB9-0D14";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}