2023-11-13 21:26:22 +01:00
|
|
|
# This is your system's configuration file.
|
|
|
|
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
|
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
outputs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2024-01-09 13:19:42 +01:00
|
|
|
imports = [
|
|
|
|
../shared/locale/configuration.nix
|
|
|
|
];
|
2023-11-13 21:26:22 +01:00
|
|
|
nixpkgs = {
|
|
|
|
# You can add overlays here
|
|
|
|
overlays = [
|
|
|
|
# Add overlays your own flake exports (from overlays and pkgs dir):
|
|
|
|
|
|
|
|
# You can also add overlays exported from other flakes:
|
|
|
|
# neovim-nightly-overlay.overlays.default
|
|
|
|
|
|
|
|
# Or define it inline, for example:
|
|
|
|
# (final: prev: {
|
|
|
|
# hi = final.hello.overrideAttrs (oldAttrs: {
|
|
|
|
# patches = [ ./change-hello-to-hi.patch ];
|
|
|
|
# });
|
|
|
|
# })
|
|
|
|
];
|
|
|
|
# Configure your nixpkgs instance
|
|
|
|
config = {
|
|
|
|
# Disable if you don't want unfree packages
|
|
|
|
allowUnfree = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 7d";
|
|
|
|
};
|
|
|
|
# This will add each flake input as a registry
|
|
|
|
# To make nix3 commands consistent with your flake
|
|
|
|
registry = lib.mapAttrs (_: value: {flake = value;}) inputs;
|
|
|
|
|
|
|
|
# This will additionally add your inputs to the system's legacy channels
|
|
|
|
# Making legacy nix commands consistent as well, awesome!
|
|
|
|
nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry;
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
# Enable flakes and new 'nix' command
|
|
|
|
experimental-features = "nix-command flakes";
|
|
|
|
# Deduplicate and optimize nix store
|
|
|
|
auto-optimise-store = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
2024-01-09 10:02:46 +01:00
|
|
|
# System tools
|
2023-11-13 21:26:22 +01:00
|
|
|
age
|
|
|
|
alejandra
|
2023-11-22 13:16:36 +01:00
|
|
|
docker
|
|
|
|
docker-compose
|
2023-11-13 21:26:22 +01:00
|
|
|
git-filter-repo
|
|
|
|
home-manager
|
2024-01-16 09:56:38 +01:00
|
|
|
htop
|
2024-01-09 10:02:46 +01:00
|
|
|
oh-my-zsh
|
|
|
|
pciutils
|
|
|
|
rsync
|
|
|
|
wget
|
|
|
|
zsh
|
|
|
|
|
|
|
|
# KDE/QT
|
2023-12-05 13:16:48 +01:00
|
|
|
krunner-translator
|
2023-11-13 21:26:22 +01:00
|
|
|
libsForQt5.discover
|
2023-11-20 20:26:17 +01:00
|
|
|
libsForQt5.kcalc
|
2023-11-13 21:26:22 +01:00
|
|
|
libsForQt5.kdepim-addons
|
|
|
|
libsForQt5.kirigami2
|
|
|
|
libsForQt5.kdeconnect-kde
|
2023-12-05 13:16:48 +01:00
|
|
|
libsForQt5.krunner-ssh
|
|
|
|
libsForQt5.krunner-symbols
|
2023-11-13 21:26:22 +01:00
|
|
|
libsForQt5.packagekit-qt
|
|
|
|
libportal-qt5
|
2024-01-09 10:02:46 +01:00
|
|
|
|
|
|
|
# System libraries
|
2023-11-13 21:26:22 +01:00
|
|
|
noto-fonts
|
|
|
|
noto-fonts-emoji-blob-bin
|
|
|
|
noto-fonts-emoji
|
2024-01-09 10:02:46 +01:00
|
|
|
|
|
|
|
# User tools
|
2023-11-13 21:26:22 +01:00
|
|
|
noisetorch
|
|
|
|
];
|
|
|
|
|
|
|
|
# Enable networking
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
|
|
|
programs.steam = {
|
|
|
|
enable = true;
|
|
|
|
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
|
|
|
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
|
|
|
};
|
|
|
|
hardware.opengl.driSupport32Bit = true; # Enables support for 32bit libs that steam uses
|
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
time.timeZone = "Europe/Amsterdam";
|
|
|
|
|
|
|
|
# Enable the X11 windowing system.
|
|
|
|
services.xserver.enable = true;
|
|
|
|
|
|
|
|
# Enable the KDE Plasma Desktop Environment.
|
|
|
|
services.xserver.displayManager.sddm.enable = true;
|
|
|
|
services.xserver.desktopManager.plasma5.enable = true;
|
|
|
|
services.xserver.displayManager.defaultSession = "plasmawayland";
|
|
|
|
programs.kdeconnect.enable = true;
|
|
|
|
|
|
|
|
# Enable flatpak support
|
|
|
|
services.flatpak.enable = true;
|
|
|
|
services.packagekit.enable = true;
|
|
|
|
|
|
|
|
# Configure keymap in X11
|
2024-01-10 11:17:18 +01:00
|
|
|
services.xserver.xkb = {
|
2023-11-13 21:26:22 +01:00
|
|
|
layout = "us";
|
2024-01-11 14:10:24 +01:00
|
|
|
variant = "";
|
2024-01-10 11:17:18 +01:00
|
|
|
options = "terminate:ctrl_alt_bksp,compose:caps_toggle";
|
2023-11-13 21:26:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# Enable CUPS to print documents.
|
|
|
|
services.printing.enable = true;
|
|
|
|
|
|
|
|
# Enable bluetooth hardware
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
|
|
|
|
# Enable fwupd daemon and user space client
|
|
|
|
services.fwupd.enable = true;
|
|
|
|
|
|
|
|
# Enable sound with pipewire.
|
|
|
|
sound.enable = true;
|
|
|
|
hardware.pulseaudio.enable = false;
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
};
|
|
|
|
|
2023-11-17 19:25:12 +01:00
|
|
|
programs.noisetorch = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
2023-11-13 21:26:22 +01:00
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.systemd-boot.configurationLimit = 3;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
users.users = {
|
|
|
|
lillian = {
|
|
|
|
isNormalUser = true;
|
2023-11-22 12:50:29 +01:00
|
|
|
extraGroups = ["sudo" "networkmanager" "wheel" "vboxsf" "docker"];
|
2023-11-13 21:26:22 +01:00
|
|
|
shell = pkgs.zsh;
|
|
|
|
};
|
2023-11-22 13:16:36 +01:00
|
|
|
};
|
|
|
|
|
2023-11-13 21:26:22 +01:00
|
|
|
# Enable completion of system packages by zsh
|
|
|
|
environment.pathsToLink = ["/share/zsh"];
|
|
|
|
}
|