init yuzu

This commit is contained in:
caandt 2024-10-27 18:02:26 -05:00
parent 19a7d37017
commit 5db83d03d0
4 changed files with 91 additions and 0 deletions

22
hosts/yuzu/default.nix Normal file
View file

@ -0,0 +1,22 @@
{...}: {
imports = [
../../system
./hardware-configuration.nix
./power.nix
];
networking.hostName = "yuzu";
time.timeZone = "America/Chicago";
services.xserver = {
videoDrivers = ["modesetting"];
deviceSection = ''
Option "DRI" "2"
Option "TearFree" "true"
'';
xkb.options = "ctrl:nocaps";
};
users.users.ahnwuoa = {
isNormalUser = true;
extraGroups = ["wheel" "podman"];
};
}

View file

@ -0,0 +1,42 @@
# 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 = ["xhci_pci" "thunderbolt" "nvme"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
fileSystems."/" = {
device = "/dev/disk/by-uuid/d0b134d2-789d-43da-8a1e-b74febb62012";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/467F-5E97";
fsType = "vfat";
options = ["fmask=0022" "dmask=0022"];
};
swapDevices = [];
# 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.wlp0s20f3.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

20
hosts/yuzu/power.nix Normal file
View file

@ -0,0 +1,20 @@
{...}: {
powerManagement = {
enable = true;
cpuFreqGovernor = "powersave";
powertop.enable = true;
};
services.auto-cpufreq.enable = true;
services.auto-cpufreq.settings = {
battery = {
governor = "powersave";
turbo = "never";
};
charger = {
governor = "powersave";
turbo = "auto";
};
};
services.thermald.enable = true;
services.power-profiles-daemon.enable = false;
}

View file

@ -0,0 +1,7 @@
{config, ...}: {
imports = [
../../../../user
];
home.username = "ahnwuoa";
}