2026-03-03 20:15:06 +01: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’).
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
config,
|
|
|
|
|
|
pkgs,
|
|
|
|
|
|
...
|
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
imports = [
|
|
|
|
|
|
# Include the results of the hardware scan.
|
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
|
./stylix.nix
|
|
|
|
|
|
];
|
|
|
|
|
|
fonts = {
|
|
|
|
|
|
packages = with pkgs; [
|
|
|
|
|
|
noto-fonts-cjk-sans
|
|
|
|
|
|
noto-fonts
|
|
|
|
|
|
nerd-fonts._0xproto
|
|
|
|
|
|
];
|
|
|
|
|
|
};
|
|
|
|
|
|
services.displayManager.gdm.enable = true;
|
|
|
|
|
|
services.desktopManager.gnome.enable = true;
|
2026-03-04 16:48:43 +01:00
|
|
|
|
programs.hyprland.enable = true;
|
2026-03-03 20:15:06 +01:00
|
|
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
|
|
|
|
|
|
|
|
plymouth = {
|
|
|
|
|
|
enable = true;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
# Enable "Silent boot"
|
|
|
|
|
|
consoleLogLevel = 3;
|
|
|
|
|
|
initrd.verbose = false;
|
|
|
|
|
|
kernelParams = [
|
|
|
|
|
|
"quiet"
|
|
|
|
|
|
"splash"
|
|
|
|
|
|
"boot.shell_on_fail"
|
|
|
|
|
|
"udev.log_priority=3"
|
|
|
|
|
|
"rd.systemd.show_status=auto"
|
|
|
|
|
|
];
|
|
|
|
|
|
# Hide the OS choice for bootloaders.
|
|
|
|
|
|
# It's still possible to open the bootloader list by pressing any key
|
|
|
|
|
|
# It will just not appear on screen unless a key is pressed
|
|
|
|
|
|
loader.timeout = 0;
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
hardware.graphics.enable = true;
|
|
|
|
|
|
nix = {
|
|
|
|
|
|
extraOptions = "experimental-features = nix-command flakes";
|
|
|
|
|
|
optimise.automatic = true;
|
|
|
|
|
|
optimise.dates = [ "12:00" ];
|
|
|
|
|
|
gc = {
|
|
|
|
|
|
automatic = true;
|
|
|
|
|
|
};
|
|
|
|
|
|
};
|
|
|
|
|
|
# Bootloader.
|
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
2026-03-04 16:48:43 +01:00
|
|
|
|
security.doas.enable = true;
|
|
|
|
|
|
security.sudo.enable = false;
|
|
|
|
|
|
security.doas.extraRules = [
|
|
|
|
|
|
{
|
|
|
|
|
|
users = [ "foo" ];
|
|
|
|
|
|
# Optional, retains environment variables while running commands
|
|
|
|
|
|
# e.g. retains your NIX_PATH when applying your config
|
|
|
|
|
|
keepEnv = true;
|
|
|
|
|
|
persist = true; # Optional, only require password verification a single time
|
|
|
|
|
|
}
|
|
|
|
|
|
];
|
2026-03-03 20:15:06 +01:00
|
|
|
|
|
|
|
|
|
|
# Use latest kernel.
|
|
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
|
|
services.power-profiles-daemon.enable = false;
|
|
|
|
|
|
services.upower.enable = true;
|
|
|
|
|
|
services.tlp.enable = true;
|
|
|
|
|
|
services.auto-cpufreq.enable = true;
|
|
|
|
|
|
|
|
|
|
|
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
|
|
|
|
|
|
|
|
|
|
# Configure network proxy if necessary
|
|
|
|
|
|
# networking.proxy.default = "http://user:password@proxy:port/";
|
|
|
|
|
|
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
|
|
|
|
|
# Sound
|
|
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
|
|
services.pipewire = {
|
|
|
|
|
|
enable = true;
|
|
|
|
|
|
alsa.enable = true;
|
|
|
|
|
|
pulse.enable = true;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
# Enable networking
|
|
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
|
|
|
|
|
|
|
# Home manager angy grrr
|
|
|
|
|
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
|
|
|
|
|
|
|
|
# Select internationalisation properties.
|
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
|
|
|
|
|
|
|
# Configure keymap in X11
|
|
|
|
|
|
services.xserver.xkb = {
|
|
|
|
|
|
layout = "us";
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
# Configure console keymap
|
|
|
|
|
|
console.keyMap = "us";
|
|
|
|
|
|
|
|
|
|
|
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
|
|
|
|
programs.direnv.enable = true;
|
|
|
|
|
|
programs.zsh.enable = true;
|
|
|
|
|
|
users.users.lucy = {
|
|
|
|
|
|
isNormalUser = true;
|
|
|
|
|
|
description = "lucy";
|
|
|
|
|
|
shell = pkgs.zsh;
|
|
|
|
|
|
extraGroups = [
|
|
|
|
|
|
"networkmanager"
|
|
|
|
|
|
"wheel"
|
|
|
|
|
|
];
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
# Allow unfree packages
|
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
|
|
|
|
|
|
# List packages installed in system profile. To search, run:
|
|
|
|
|
|
# $ nix search wget
|
|
|
|
|
|
environment.pathsToLink = [
|
|
|
|
|
|
"/share/applications"
|
|
|
|
|
|
"/share/xdg-desktop-portal"
|
|
|
|
|
|
];
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
|
openssl
|
|
|
|
|
|
fastfetch
|
|
|
|
|
|
gnomeExtensions.blur-my-shell
|
|
|
|
|
|
gnomeExtensions.appindicator
|
2026-03-04 16:48:43 +01:00
|
|
|
|
gnomeExtensions.just-perfection
|
2026-03-06 19:06:32 +01:00
|
|
|
|
sbctl
|
2026-03-03 20:15:06 +01:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
programs.steam = {
|
|
|
|
|
|
enable = true;
|
|
|
|
|
|
extraCompatPackages = with pkgs; [ proton-ge-bin ];
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
programs.git.enable = true;
|
|
|
|
|
|
systemd.user.services.polkit-gnome-authentication-agent-1 = {
|
|
|
|
|
|
description = "polkit-gnome-authentication-agent-1";
|
|
|
|
|
|
wantedBy = [ "graphical-session.target" ];
|
|
|
|
|
|
serviceConfig = {
|
|
|
|
|
|
Type = "simple";
|
|
|
|
|
|
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
|
|
|
|
|
Restart = "on-failure";
|
|
|
|
|
|
};
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
# Some programs need SUID wrappers, can be configured further or are
|
|
|
|
|
|
# started in user sessions.
|
|
|
|
|
|
# programs.mtr.enable = true;
|
|
|
|
|
|
# programs.gnupg.agent = {
|
|
|
|
|
|
# enable = true;
|
|
|
|
|
|
# enableSSHSupport = true;
|
|
|
|
|
|
# };
|
|
|
|
|
|
|
|
|
|
|
|
# List services that you want to enable:
|
|
|
|
|
|
|
|
|
|
|
|
# Enable the OpenSSH daemon.
|
|
|
|
|
|
# services.openssh.enable = true;
|
|
|
|
|
|
|
|
|
|
|
|
# Open ports in the firewall.
|
|
|
|
|
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
|
|
|
|
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
|
|
|
|
# Or disable the firewall altogether.
|
|
|
|
|
|
# networking.firewall.enable = false;
|
|
|
|
|
|
|
|
|
|
|
|
# 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 = "25.05"; # Did you read the comment?
|
|
|
|
|
|
|
|
|
|
|
|
}
|