nixos/configuration.nix
2026-10-12 10:10:00 +02:00

112 lines
2.2 KiB
Nix
Executable file

{
config,
lib,
pkgs,
...
}:
{
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.limine = {
enable = true;
extraEntries = lib.mkIf (config.networking.hostName == "nerv") ''
/Windows 11
protocol: efi_boot_entry
entry: Windows Boot Manager
'';
};
boot.kernelPackages = pkgs.linuxPackages_latest;
networking.networkmanager.enable = true;
time.timeZone = "Europe/Berlin";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "de_DE.UTF-8";
LC_IDENTIFICATION = "de_DE.UTF-8";
LC_MEASUREMENT = "de_DE.UTF-8";
LC_MONETARY = "de_DE.UTF-8";
LC_NAME = "de_DE.UTF-8";
LC_NUMERIC = "de_DE.UTF-8";
LC_PAPER = "de_DE.UTF-8";
LC_TELEPHONE = "de_DE.UTF-8";
LC_TIME = "de_DE.UTF-8";
};
security = {
rtkit.enable = true;
polkit.enable = true; # polkit
polkit.enablePkexecWrapper = true;
};
users.users."lucy" = {
isNormalUser = true;
description = "lucy";
shell = pkgs.zsh;
extraGroups = [
"networkmanager"
"wheel"
];
packages = with pkgs; [
stow
ufetch
rbw
emacs-pgtk
tinty
foot
pinentry-gnome3
git
nixd
nixfmt
xournalpp
btop
chromium
fuzzel
quickshell
wl-clipboard
adw-gtk3
papirus-icon-theme
apple-cursor
polkit_gnome
xwayland-satellite
nautilus
libwacom
devenv
kdePackages.qt6ct
gcc
clang-tools
clang
gdb
gnumake
];
};
environment.sessionVariables = {
XCURSOR_THEME = "macOS";
XCURSOR_SIZE = "24";
QT_QPA_PLATFORMTHEME = "qt6ct";
};
fonts.packages = with pkgs; [
jetbrains-mono
nerd-fonts.jetbrains-mono
noto-fonts
noto-fonts-cjk-sans
noto-fonts-color-emoji
inter
];
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [
(final: prev: {
inherit (prev.lixPackageSets.stable)
nixpkgs-review
nix-eval-jobs
nix-fast-build
colmena
;
})
];
nix.package = pkgs.lixPackageSets.stable.lix;
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
system.stateVersion = "26.05"; # Did you read the comment?
}