Made the configuration more modular

This commit is contained in:
2025-05-05 23:07:10 +02:00
parent 20ddcd892a
commit 3acb880866
7 changed files with 29 additions and 112 deletions

View File

@@ -5,5 +5,11 @@
./boot.nix
./nvidia.nix
./services.nix
./virtualisation.nix
./networking.nix
];
networking.hostName = "katana"; # Define your hostname.
system.stateVersion = "24.05"; # Did you read the comment?
}

View File

@@ -0,0 +1,8 @@
{ ... }:
{
networking.networkmanager.enable = true;
networking.firewall.allowedUDPPorts = [ 25565 ];
networking.firewall.allowedTCPPorts = [ 25565 ];
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
}

View File

@@ -8,26 +8,9 @@
services.desktopManager.plasma6.enable = true;
services.displayManager.sddm.wayland.enable = true;
# services.xserver.displayManager.gdm.enable = true;
# services.xserver.desktopManager.gnome.enable = true;
# environment.gnome.excludePackages = (with pkgs; [
# atomix # puzzle game
# cheese # webcam tool
# epiphany # web browser
# evince # document viewer
# geary # email reader
# gedit # text editor
# gnome-characters
# gnome-music
# gnome-photos
# gnome-terminal
# gnome-tour
# hitori # sudoku game
# iagno # go game
# tali # poker game
# totem # video player
# ]);
# Enable sound with pipewire.
services.pulseaudio.enable = false;
security.rtkit.enable = true;
# Configure keymap in X11
services.xserver.xkb = {

View File

@@ -0,0 +1,10 @@
{ ... }:
{
virtualisation.podman.enable = true;
virtualisation.podman.dockerCompat = true;
programs.virt-manager.enable = true;
users.groups.libvirtd.members = ["r3ddy"];
virtualisation.libvirtd.enable = true;
virtualisation.spiceUSBRedirection.enable = true;
}