2024-12-26 22:19:23 +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’).
|
|
|
|
|
|
2024-12-27 21:31:18 +01:00
|
|
|
|
{
|
|
|
|
|
pkgs,
|
|
|
|
|
...
|
|
|
|
|
}:
|
2024-12-26 22:19:23 +01:00
|
|
|
|
|
|
|
|
|
{
|
2024-12-27 21:31:18 +01:00
|
|
|
|
imports = [
|
|
|
|
|
# Include the results of the hardware scan.
|
|
|
|
|
./hardware-configuration.nix
|
2024-12-28 00:25:51 +01:00
|
|
|
|
./terminal
|
2024-12-28 13:30:51 +01:00
|
|
|
|
./hyprland
|
2024-12-28 20:25:37 +01:00
|
|
|
|
./audio.nix
|
2024-12-29 00:34:39 +01:00
|
|
|
|
./networking.nix
|
|
|
|
|
./development.nix
|
2024-12-29 11:32:06 +01:00
|
|
|
|
./security.nix
|
2024-12-30 20:21:06 +01:00
|
|
|
|
./locale.nix
|
2024-12-27 21:31:18 +01:00
|
|
|
|
];
|
2024-12-26 22:19:23 +01:00
|
|
|
|
|
|
|
|
|
# Bootloader.
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
|
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
|
|
|
users.users.martin = {
|
|
|
|
|
isNormalUser = true;
|
|
|
|
|
description = "martin";
|
2024-12-27 21:31:18 +01:00
|
|
|
|
extraGroups = [
|
|
|
|
|
"networkmanager"
|
|
|
|
|
"wheel"
|
|
|
|
|
];
|
|
|
|
|
packages = with pkgs; [ ];
|
2024-12-26 22:19:23 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Allow unfree packages
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
2024-12-29 21:49:16 +01:00
|
|
|
|
environment.sessionVariables = {
|
2024-12-29 22:13:25 +01:00
|
|
|
|
# Tells Electron apps to use Wayland
|
|
|
|
|
NIXOS_OZONE_WL = "1";
|
|
|
|
|
NIXOS_CONFIG_PATH = "/etc/nixos";
|
2024-12-26 22:19:23 +01:00
|
|
|
|
};
|
|
|
|
|
|
2024-12-31 00:38:23 +01:00
|
|
|
|
fonts = {
|
|
|
|
|
fontconfig.enable = true;
|
|
|
|
|
packages = with pkgs; [
|
|
|
|
|
nerd-fonts.jetbrains-mono
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
2024-12-26 22:19:23 +01:00
|
|
|
|
# List packages installed in system profile. To search, run:
|
|
|
|
|
# $ nix search wget
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
gnupg
|
|
|
|
|
wget
|
|
|
|
|
kitty
|
|
|
|
|
xdg-utils
|
|
|
|
|
xdg-desktop-portal-gtk
|
|
|
|
|
kdePackages.dolphin
|
|
|
|
|
kdePackages.qtwayland
|
|
|
|
|
kdePackages.qtsvg
|
|
|
|
|
kdePackages.qt6ct
|
|
|
|
|
protonmail-desktop
|
|
|
|
|
adw-gtk3
|
|
|
|
|
glib
|
|
|
|
|
adwaita-icon-theme
|
|
|
|
|
stremio
|
|
|
|
|
fastfetch
|
|
|
|
|
freetube
|
2024-12-28 00:25:51 +01:00
|
|
|
|
nextcloud-client
|
2024-12-29 10:56:58 +01:00
|
|
|
|
discord
|
2024-12-31 14:01:42 +01:00
|
|
|
|
nix-prefetch-github # Cmd to get rev and hash from GitHub
|
2024-12-26 22:19:23 +01:00
|
|
|
|
];
|
|
|
|
|
|
2024-12-29 00:34:39 +01:00
|
|
|
|
nix.settings.experimental-features = [
|
|
|
|
|
"nix-command"
|
|
|
|
|
"flakes"
|
|
|
|
|
];
|
2024-12-27 18:47:23 +01:00
|
|
|
|
|
2024-12-26 22:19:23 +01:00
|
|
|
|
# Some programs need SUID wrappers, can be configured further or are
|
|
|
|
|
# started in user sessions.
|
|
|
|
|
# programs.mtr.enable = true;
|
|
|
|
|
|
|
|
|
|
programs = {
|
2024-12-29 11:32:06 +01:00
|
|
|
|
dconf.enable = true;
|
2024-12-26 22:19:23 +01:00
|
|
|
|
|
|
|
|
|
gnupg.agent.enable = true;
|
|
|
|
|
|
2024-12-29 00:34:39 +01:00
|
|
|
|
kdeconnect.enable = true;
|
2024-12-27 18:47:23 +01:00
|
|
|
|
|
2024-12-26 22:19:23 +01:00
|
|
|
|
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
|
|
|
|
|
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# List services that you want to enable:
|
|
|
|
|
|
|
|
|
|
# Enable the OpenSSH daemon.
|
|
|
|
|
# services.openssh.enable = true;
|
|
|
|
|
|
|
|
|
|
services = {
|
|
|
|
|
displayManager.sddm = {
|
|
|
|
|
enable = true;
|
2024-12-31 13:19:03 +01:00
|
|
|
|
autoNumlock = true; # Enable numlock at login # TODO doesn't work
|
2024-12-26 22:19:23 +01:00
|
|
|
|
wayland.enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
flatpak.enable = true;
|
|
|
|
|
|
2024-12-29 11:32:06 +01:00
|
|
|
|
gnome.gnome-keyring.enable = true;
|
2024-12-26 22:19:23 +01:00
|
|
|
|
|
|
|
|
|
xserver = {
|
|
|
|
|
enable = true;
|
|
|
|
|
# Load Nvidia driver for Xorg and Wayland
|
2024-12-27 21:31:18 +01:00
|
|
|
|
videoDrivers = [ "nvidia" ];
|
2024-12-26 22:19:23 +01:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2024-12-28 20:25:37 +01:00
|
|
|
|
stylix = {
|
2024-12-28 00:25:51 +01:00
|
|
|
|
enable = true;
|
|
|
|
|
image = ./catppuccin.png;
|
|
|
|
|
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
|
|
|
|
|
polarity = "dark";
|
2024-12-28 20:25:37 +01:00
|
|
|
|
opacity.terminal = 0.8;
|
|
|
|
|
override = {
|
|
|
|
|
base02 = "b0b0b0"; # Comments in shell
|
|
|
|
|
base03 = "b0b0b0"; # Comments in nvim
|
|
|
|
|
base04 = "b0b0b0"; # Secondary text in shell
|
|
|
|
|
};
|
2024-12-28 00:25:51 +01:00
|
|
|
|
};
|
|
|
|
|
|
2024-12-30 20:21:06 +01:00
|
|
|
|
qt.enable = true;
|
2024-12-26 22:19:23 +01:00
|
|
|
|
|
|
|
|
|
# Enable OpenGL
|
2024-12-30 20:21:06 +01:00
|
|
|
|
hardware = {
|
|
|
|
|
graphics.enable = true;
|
|
|
|
|
nvidia = {
|
|
|
|
|
# Required
|
|
|
|
|
modesetting.enable = true;
|
|
|
|
|
# Use closed-source drivers
|
|
|
|
|
open = false;
|
|
|
|
|
# Enable the Nvidia settings menu
|
|
|
|
|
nvidiaSettings = true;
|
|
|
|
|
};
|
2024-12-26 22:19:23 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
xdg.mime.defaultApplications = {
|
|
|
|
|
"text/html" = "io.github.zen_browser.zen.desktop";
|
|
|
|
|
"x-scheme-handler/http" = "io.github.zen_browser.zen.desktop";
|
|
|
|
|
"x-scheme-handler/https" = "io.github.zen_browser.zen.desktop";
|
|
|
|
|
"x-scheme-handler/about" = "io.github.zen_browser.zen.desktop";
|
|
|
|
|
"x-scheme-handler/unknown" = "io.github.zen_browser.zen.desktop";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# 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 = "24.11"; # Did you read the comment?
|
|
|
|
|
|
|
|
|
|
}
|