2024-06-13 14:00:35 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
|
2024-06-15 18:26:05 +00:00
|
|
|
let
|
|
|
|
# Do not change this value! This tracks when NixOS was installed on your system.
|
|
|
|
stateVersion = "24.11";
|
2024-06-16 18:32:29 +00:00
|
|
|
|
|
|
|
# Set the username for the initial user.
|
2024-06-22 16:28:34 +00:00
|
|
|
username = builtins.abort "Please set your username via the 'username' variable in configuration.nix";
|
2024-06-15 18:26:05 +00:00
|
|
|
in
|
2024-06-13 14:00:35 +00:00
|
|
|
{
|
2024-06-15 18:26:05 +00:00
|
|
|
imports = [ ./hardware-configuration.nix ];
|
2024-06-13 14:00:35 +00:00
|
|
|
|
2024-06-15 18:26:05 +00:00
|
|
|
system.stateVersion = stateVersion;
|
|
|
|
|
|
|
|
###*** Configure your system below this line. ***###
|
2024-06-13 14:00:35 +00:00
|
|
|
# Set your time zone.
|
2024-06-15 18:26:05 +00:00
|
|
|
# To see all available timezones, run `timedatectl list-timezones`.
|
2024-06-13 14:00:35 +00:00
|
|
|
time.timeZone = "Europe/Amsterdam";
|
|
|
|
|
2024-06-22 16:28:34 +00:00
|
|
|
# Define your user account(s). If this user doesn't already have a password, don't forget to set one using `passwd`.
|
2024-06-16 18:32:29 +00:00
|
|
|
users.users.${username} = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [ "wheel" ];
|
|
|
|
|
|
|
|
# Enter any additional packages specific to this user here.
|
|
|
|
packages = with pkgs; [ ];
|
2024-06-15 18:26:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Configure home-manager for your user.
|
|
|
|
# For configuration options, see https://nix-community.github.io/home-manager/#using-home-manager
|
2024-06-16 18:32:29 +00:00
|
|
|
home-manager.users.${username} = {
|
2024-06-15 18:26:05 +00:00
|
|
|
# The state version is required and should stay at the version you originally installed.
|
|
|
|
home.stateVersion = stateVersion;
|
2024-06-16 16:52:46 +00:00
|
|
|
|
|
|
|
programs = {
|
|
|
|
# Let home Manager install and manage itself.
|
|
|
|
home-manager.enable = true;
|
|
|
|
};
|
2024-06-13 14:00:35 +00:00
|
|
|
};
|
|
|
|
|
2024-06-15 18:26:05 +00:00
|
|
|
# Configure the system.
|
2024-06-16 16:52:46 +00:00
|
|
|
aux.system = {
|
2024-06-15 18:26:05 +00:00
|
|
|
# Enable to allow unfree (e.g. closed source) packages.
|
2024-06-16 18:32:29 +00:00
|
|
|
# Some settings may override this (e.g. enabling Nvidia GPU support).
|
2024-06-15 18:26:05 +00:00
|
|
|
# https://nixos.org/manual/nixpkgs/stable/#sec-allow-unfree
|
|
|
|
allowUnfree = false;
|
|
|
|
|
|
|
|
# Enable Secure Boot support.
|
|
|
|
# IMPORTANT: Read the README before enabling this option!
|
|
|
|
bootloader.secureboot.enable = false;
|
|
|
|
|
|
|
|
# Change the default text editor. Options are "emacs", "nano", or "vim".
|
|
|
|
editor = "nano";
|
|
|
|
|
2024-06-16 18:53:33 +00:00
|
|
|
ui.flatpak = {
|
|
|
|
# Enable Flatpak support.
|
|
|
|
enable = false;
|
|
|
|
|
|
|
|
# Define Flatpak packages to install.
|
|
|
|
packages = [ ];
|
|
|
|
};
|
|
|
|
|
2024-06-16 17:51:25 +00:00
|
|
|
# Additional system packages to install.
|
|
|
|
packages = [ ];
|
|
|
|
|
2024-06-15 18:26:05 +00:00
|
|
|
# Change how long old generations are kept for.
|
|
|
|
retentionPeriod = "30d";
|
|
|
|
|
2024-06-16 17:51:25 +00:00
|
|
|
# Enable GPU support.
|
|
|
|
gpu = {
|
|
|
|
# Enable AMD GPU support.
|
|
|
|
amd.enable = false;
|
|
|
|
|
|
|
|
# Enable Intel GPU support.
|
|
|
|
intel.enable = false;
|
|
|
|
|
|
|
|
nvidia = {
|
2024-06-16 18:32:29 +00:00
|
|
|
# Enable Nvidia GPU support.
|
2024-06-16 17:51:25 +00:00
|
|
|
enable = false;
|
|
|
|
|
2024-06-16 18:32:29 +00:00
|
|
|
hybrid = {
|
|
|
|
# Enables support for hybrid GPUs (e.g. for laptops and systems with integrated GPUs).
|
|
|
|
enable = false;
|
|
|
|
# Define the bus IDs for your GPUs.
|
|
|
|
# For more info on where to find bus IDs, see https://nixos.wiki/wiki/Nvidia#Configuring_Optimus_PRIME:_Bus_ID_Values_.28Mandatory.29
|
|
|
|
busIDs = {
|
|
|
|
nvidia = "";
|
|
|
|
intel = "";
|
|
|
|
amd = "";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Enable sync mode for faster performance at the cost of higher battery usage.
|
|
|
|
# If sync is disabled, you'll need to run GPU-accelerated applications using 'nvidia-offload <command>'.
|
|
|
|
sync = false;
|
2024-06-16 17:51:25 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-06-13 14:00:35 +00:00
|
|
|
ui.desktops = {
|
2024-06-15 18:26:05 +00:00
|
|
|
# Enable the Budgie desktop environment.
|
|
|
|
# https://buddiesofbudgie.org/
|
|
|
|
budgie.enable = false;
|
|
|
|
|
2024-06-22 16:28:34 +00:00
|
|
|
# Enable the Hyprland desktop environment.
|
2024-06-15 18:26:05 +00:00
|
|
|
# https://hyprland.org/
|
|
|
|
hyprland.enable = false;
|
|
|
|
|
|
|
|
# Enable the Gnome desktop environment.
|
|
|
|
# https://www.gnome.org/
|
|
|
|
gnome.enable = false;
|
|
|
|
|
|
|
|
# Enable the KDE desktop environment.
|
|
|
|
# https://kde.org/
|
|
|
|
kde.enable = false;
|
|
|
|
|
|
|
|
# Enable the XFCE desktop environment.
|
|
|
|
# https://xfce.org/
|
|
|
|
xfce.enable = false;
|
2024-06-13 14:00:35 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Enable printing via CUPS
|
|
|
|
services.printing.enable = false;
|
|
|
|
}
|