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’).
|
|
|
|
|
{
|
|
|
|
|
inputs,
|
|
|
|
|
pkgs,
|
|
|
|
|
...
|
2024-09-02 18:16:22 -07:00
|
|
|
|
}:
|
|
|
|
|
{
|
2024-08-21 16:48:17 -07:00
|
|
|
|
imports = [
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
];
|
|
|
|
|
|
2024-12-25 23:49:43 -08:00
|
|
|
|
networking.hostName = "demeter";
|
2024-12-24 18:47:17 -08:00
|
|
|
|
|
2024-12-23 04:29:01 -08:00
|
|
|
|
liminalOS = {
|
2024-12-24 18:19:06 -08:00
|
|
|
|
flakeLocation = "/home/youwen/.config/liminalOS";
|
|
|
|
|
config.allowUnfree = true;
|
2024-12-24 20:55:07 -08:00
|
|
|
|
defaultEditor = inputs.viminal.packages.${pkgs.system}.default;
|
2024-12-25 19:47:59 -08:00
|
|
|
|
formFactor = "desktop";
|
2024-12-23 04:29:01 -08:00
|
|
|
|
system = {
|
|
|
|
|
audio.prod.enable = true;
|
|
|
|
|
networking = {
|
|
|
|
|
firewallPresets.vite = true;
|
|
|
|
|
cloudflareNameservers.enable = true;
|
|
|
|
|
};
|
2024-12-25 19:47:59 -08:00
|
|
|
|
graphics.nvidia.enable = true;
|
2024-12-23 04:29:01 -08:00
|
|
|
|
};
|
|
|
|
|
extras.gaming = {
|
|
|
|
|
enable = true;
|
|
|
|
|
roblox.enable = true;
|
|
|
|
|
utilities.gamemode = {
|
|
|
|
|
enable = true;
|
|
|
|
|
gamemodeUsers = [ "youwen" ];
|
|
|
|
|
};
|
|
|
|
|
};
|
2025-01-04 15:18:02 -08:00
|
|
|
|
extras.distrobox.enable = true;
|
2024-12-23 04:29:01 -08:00
|
|
|
|
};
|
|
|
|
|
|
2024-12-24 18:47:17 -08:00
|
|
|
|
time.timeZone = "America/Los_Angeles";
|
2024-08-21 16:48:17 -07:00
|
|
|
|
|
2024-12-24 18:47:17 -08:00
|
|
|
|
hardware.cpu.intel.updateMicrocode = true;
|
|
|
|
|
|
|
|
|
|
# Bootloader.
|
2024-11-27 17:18:28 -08:00
|
|
|
|
boot = {
|
2024-12-24 18:47:17 -08:00
|
|
|
|
loader = {
|
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
|
timeout = 15;
|
|
|
|
|
# Lanzaboote currently replaces the systemd-boot module.
|
|
|
|
|
# This setting is usually set to true in configuration.nix
|
|
|
|
|
# generated at installation time. So we force it to false
|
|
|
|
|
# for now.
|
|
|
|
|
systemd-boot = {
|
|
|
|
|
enable = false;
|
|
|
|
|
consoleMode = "auto";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
lanzaboote = {
|
2024-11-27 17:18:28 -08:00
|
|
|
|
enable = true;
|
2024-12-24 18:47:17 -08:00
|
|
|
|
pkiBundle = "/etc/secureboot";
|
2024-11-27 17:18:28 -08:00
|
|
|
|
};
|
|
|
|
|
|
2024-12-24 18:47:17 -08:00
|
|
|
|
kernelPackages = pkgs.linuxPackages_zen;
|
2024-08-21 16:48:17 -07:00
|
|
|
|
|
2024-12-24 18:47:17 -08:00
|
|
|
|
initrd.luks.devices."luks-af320a0f-b388-43f5-b5a3-af2b47cfc716".device =
|
|
|
|
|
"/dev/disk/by-uuid/af320a0f-b388-43f5-b5a3-af2b47cfc716";
|
2024-09-02 18:16:22 -07:00
|
|
|
|
};
|
2024-08-21 16:48:17 -07:00
|
|
|
|
|
|
|
|
|
# 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?
|
|
|
|
|
}
|