2024-08-21 16:48:17 -07:00
|
|
|
|
# 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,
|
2025-01-05 21:20:31 -08:00
|
|
|
|
inputs,
|
2025-01-12 21:35:12 -08:00
|
|
|
|
lib,
|
2024-08-21 16:48:17 -07:00
|
|
|
|
...
|
2024-09-02 18:16:22 -07:00
|
|
|
|
}:
|
|
|
|
|
{
|
2025-01-05 21:20:31 -08:00
|
|
|
|
imports = [ ./hardware-configuration.nix ];
|
|
|
|
|
|
|
|
|
|
networking.hostName = "adrastea";
|
|
|
|
|
|
|
|
|
|
liminalOS = {
|
|
|
|
|
flakeLocation = "/home/youwen/.config/liminalOS";
|
|
|
|
|
config.allowUnfree = true;
|
|
|
|
|
defaultEditor = inputs.viminal.packages.${pkgs.system}.default;
|
|
|
|
|
formFactor = "desktop";
|
|
|
|
|
system = {
|
|
|
|
|
audio.prod.enable = true;
|
|
|
|
|
networking = {
|
|
|
|
|
firewallPresets.vite = true;
|
|
|
|
|
cloudflareNameservers.enable = true;
|
|
|
|
|
};
|
|
|
|
|
graphics.nvidia.enable = true;
|
|
|
|
|
};
|
|
|
|
|
extras.gaming = {
|
2024-08-21 16:48:17 -07:00
|
|
|
|
enable = true;
|
2025-01-05 21:20:31 -08:00
|
|
|
|
roblox.enable = true;
|
|
|
|
|
utilities.gamemode = {
|
|
|
|
|
enable = true;
|
|
|
|
|
gamemodeUsers = [ "youwen" ];
|
|
|
|
|
};
|
2024-11-06 23:24:31 -08:00
|
|
|
|
};
|
2025-01-05 21:20:31 -08:00
|
|
|
|
extras.distrobox.enable = true;
|
|
|
|
|
};
|
2024-11-06 23:24:31 -08:00
|
|
|
|
|
2025-01-05 21:20:31 -08:00
|
|
|
|
boot = {
|
2024-11-06 23:24:31 -08:00
|
|
|
|
loader = {
|
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
|
systemd-boot = {
|
|
|
|
|
enable = true;
|
|
|
|
|
consoleMode = "auto";
|
|
|
|
|
};
|
2024-08-21 16:48:17 -07:00
|
|
|
|
};
|
2025-01-05 21:20:31 -08:00
|
|
|
|
kernelPackages = pkgs.linuxPackages_zen;
|
|
|
|
|
initrd.luks.devices."luks-52d1be6d-b32f-41e0-a6d7-2ff52599fe7c".device =
|
|
|
|
|
"/dev/disk/by-uuid/52d1be6d-b32f-41e0-a6d7-2ff52599fe7c";
|
2024-08-21 16:48:17 -07:00
|
|
|
|
};
|
|
|
|
|
|
2024-11-12 15:35:52 -08:00
|
|
|
|
services.ucodenix = {
|
|
|
|
|
enable = true;
|
|
|
|
|
cpuModelId = "00A50F00";
|
|
|
|
|
};
|
|
|
|
|
|
2025-01-12 21:35:12 -08:00
|
|
|
|
services.tlp.enable = lib.mkForce false;
|
2024-08-21 16:48:17 -07:00
|
|
|
|
|
2025-01-05 21:20:31 -08:00
|
|
|
|
powerManagement.cpuFreqGovernor = "performance";
|
2024-08-21 16:48:17 -07:00
|
|
|
|
|
|
|
|
|
time.timeZone = "America/Los_Angeles";
|
|
|
|
|
|
2025-01-05 21:20:31 -08:00
|
|
|
|
# hardware.nvidia = {
|
|
|
|
|
# modesetting.enable = true;
|
|
|
|
|
# powerManagement.enable = true;
|
|
|
|
|
# powerManagement.finegrained = false;
|
|
|
|
|
# nvidiaSettings = true;
|
|
|
|
|
# open = true;
|
|
|
|
|
# # prime = {
|
|
|
|
|
# # amdgpuBusId = "PCI:4:0:0";
|
|
|
|
|
# # nvidiaBusId = "PCI:1:0:0";
|
|
|
|
|
# # # offload = {
|
|
|
|
|
# # # enable = true;
|
|
|
|
|
# # # enableOffloadCmd = true;
|
|
|
|
|
# # # };
|
|
|
|
|
# # sync.enable = true;
|
|
|
|
|
# # };
|
|
|
|
|
# };
|
2024-08-21 16:48:17 -07:00
|
|
|
|
|
|
|
|
|
hardware.graphics.enable = true;
|
|
|
|
|
|
2024-12-05 23:14:27 -08:00
|
|
|
|
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.beta;
|
2024-08-21 16:48:17 -07:00
|
|
|
|
|
2024-09-02 18:16:22 -07:00
|
|
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
2024-08-21 16:48:17 -07:00
|
|
|
|
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
|
|
|
|
# This value determines the NixOS release from which the default
|
|
|
|
|
# settings for stateful data, like file locations and database versions
|
|
|
|
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
|
|
|
system.stateVersion = "24.05"; # Did you read the comment?
|
|
|
|
|
}
|