2025-01-31 12:19:42 +01:00
{ config , pkgs , . . . }:
{
imports = [
# Filesystem settings.
2025-01-31 12:52:59 +01:00
./btrfsFileSystems.nix
2025-01-31 12:54:26 +01:00
./btrfsMounts.nix
2025-01-31 12:19:42 +01:00
# nixpkgs config
./nur-and-unstable.nix
2025-02-01 21:40:17 +01:00
# nixpkgs config helper
2025-01-31 12:19:42 +01:00
./unfree.nix
] ;
# Firmware.
#
# The list of hardware.enableAllFirmware contains non-redistributable licensed firmware files.
# This requires nixpkgs.config.allowUnfree to be true.
# An alternative is to use the hardware.enableRedistributableFirmware option.
hardware . enableAllFirmware = false ;
#
# Enables e.g. Intel microcode updates.
# Defaults to `config.hardware.enableAllFirmware`.
hardware . enableRedistributableFirmware = true ;
# Allow **all** unfree packages.
# To whitelist individual unfree packages, see ./unfree.nix
nixpkgs . config . allowUnfree = false ;
# Set your time zone.
time . timeZone = " E u r o p e / B e r l i n " ;
# Select internationalisation properties.
i18n . defaultLocale = " e n _ U S . U T F - 8 " ;
i18n . extraLocaleSettings = {
LC_ADDRESS = " d e _ D E . U T F - 8 " ;
LC_IDENTIFICATION = " d e _ D E . U T F - 8 " ;
LC_MEASUREMENT = " d e _ D E . U T F - 8 " ;
LC_MONETARY = " d e _ D E . U T F - 8 " ;
LC_NAME = " d e _ D E . U T F - 8 " ;
LC_NUMERIC = " d e _ D E . U T F - 8 " ;
LC_PAPER = " d e _ D E . U T F - 8 " ;
LC_TELEPHONE = " d e _ D E . U T F - 8 " ;
LC_TIME = " d e _ D E . U T F - 8 " ;
} ;
console = {
#font = "Lat2-Terminus16";
# Configure console keymap.
keyMap = " d e - l a t i n 1 - n o d e a d k e y s " ;
} ;
# Define a user account.
# Don't forget to set a password with `passwd`.
2025-02-09 21:35:44 +01:00
users . users . " y o d a " = {
2025-01-31 12:19:42 +01:00
isNormalUser = true ;
description = " Y o d a " ;
extraGroups = [ " w h e e l " ] ;
} ;
# SystemMaxFileSize: Defaults to one eighth of the values configured with SystemMaxUse= and RuntimeMaxUse=, so that usually seven rotated journal files are kept as history.
# MaxFileSec: To ensure that not too much data is lost at once when old journal files are deleted, it might make sense to change this value from the default of one month.
# https://www.freedesktop.org/software/systemd/man/journald.conf.html
services . journald . extraConfig = ''
SystemMaxUse = 8 0 0 M
MaxFileSec = 7 day
'' ;
# Delete all files in /tmp during boot.
boot . tmp . cleanOnBoot = true ;
# Whether to install NixOS's own documentation.
documentation . nixos . enable = false ;
# Options only for build.system.vm - they won’ t get applied when building build.system.toplevel aka the normal system config.
# https://discourse.nixos.org/t/wayland-compositors-an-build-vm-not-working/46486/2
virtualisation . vmVariant = {
2025-02-09 21:35:44 +01:00
users . users . " y o d a " . initialPassword = " a s d f " ;
2025-01-31 12:19:42 +01:00
virtualisation . qemu . options = [
" - d e v i c e v i r t i o - v g a - g l "
" - d i s p l a y s d l , g l = o n , s h o w - c u r s o r = o f f "
" - m 8 G "
] ;
} ;
}