🧹 Moved almost all files to /modules. Moved some code to separate files

This commit is contained in:
2025-01-05 19:14:37 +01:00
parent f0ac3a7705
commit b30376cdcf
101 changed files with 133 additions and 102 deletions

View File

@ -9,20 +9,7 @@
}:
{
imports = [
./gnome
./hardware-configuration.nix
./keyboard.nix
./terminal
./hyprland
./audio.nix
./networking.nix
./nixHelper.nix
./development.nix
./security.nix
./locale.nix
./sddm.nix
];
imports = [ ./modules ];
nixpkgs.overlays = [ outputs.overlays.unstable-packages ];
@ -46,27 +33,14 @@
environment.sessionVariables = {
# Tells Electron apps to use Wayland
NIXOS_OZONE_WL = "1";
NIXOS_CONFIG_PATH = "/etc/nixos";
LIBVA_DRIVER_NAME = "iHD"; # For hardware acceleration
};
fonts = {
fontconfig.enable = true;
packages = with pkgs; [
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
jetbrains-mono
# The line below will replace the lines above in 25.05
# nerd-fonts.jetbrains-mono
];
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
gnupg
wget
kitty
xdg-utils
xdg-desktop-portal
xdg-desktop-portal-gtk
kdePackages.qtwayland
kdePackages.qtsvg
@ -92,16 +66,7 @@
# programs.mtr.enable = true;
programs = {
gnupg.agent.enable = true;
kdeconnect.enable = true;
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:
@ -111,48 +76,11 @@
services = {
flatpak.enable = true;
xserver = {
enable = true;
# Load Nvidia driver for Xorg and Wayland
videoDrivers = [ "nvidia" ];
};
};
stylix = {
enable = true;
image = ./catppuccin.png;
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
polarity = "dark";
opacity.terminal = 0.8;
override = {
base02 = "b0b0b0"; # Comments in shell
base03 = "b0b0b0"; # Comments in nvim
base04 = "b0b0b0"; # Secondary text in shell
};
xserver.enable = true;
};
qt.enable = true;
hardware = {
# Enable OpenGL
graphics = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver # For Broadwell (2014) or newer processors. LIBVA_DRIVER_NAME=iHD
];
};
nvidia = {
# Required
modesetting.enable = true;
# Use closed-source drivers
open = false;
# Enable the Nvidia settings menu
nvidiaSettings = true;
};
};
# 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. Its perfectly fine and recommended to leave