🧹 Organizing

Moved code to separate files.

Rofi config in home-manager.

Moved home.nix to /home.

Scripts to format and rebuild
This commit is contained in:
2024-12-29 00:34:39 +01:00
parent 8e91b0ca78
commit f60462a770
18 changed files with 386 additions and 209 deletions

View File

@ -14,22 +14,14 @@
./terminal
./hyprland
./audio.nix
./networking.nix
./development.nix
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "nixos"; # Define your hostname.
# 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";
# Enable networking
networking.networkmanager.enable = true;
# Set your time zone.
time.timeZone = "Europe/Oslo";
@ -80,43 +72,29 @@
environment.systemPackages = with pkgs; [
gnupg
wget
git
kitty
swaynotificationcenter
xdg-utils
xdg-desktop-portal-gtk
xdg-desktop-portal-hyprland
hyprpolkitagent
rofi-wayland
kdePackages.dolphin
kdePackages.qtwayland
kdePackages.qtsvg
kdePackages.qt6ct
spotify
protonmail-desktop
adw-gtk3
glib
adwaita-icon-theme
jetbrains.rust-rover
jetbrains.webstorm
vscodium
stremio
docker
rustup
nodejs
pnpm
fastfetch
freetube
nixd
nextcloud-client
];
nix = {
settings.experimental-features = [
"nix-command"
"flakes"
];
};
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
@ -130,14 +108,7 @@
gnupg.agent.enable = true;
hyprland = {
enable = true;
xwayland.enable = true;
};
kdeconnect = {
enable = true;
};
kdeconnect.enable = true;
steam = {
enable = true;
@ -155,7 +126,6 @@
security = {
# Adds Swaylock to /etc/pam.d
pam.services.swaylock = { };
rtkit.enable = true;
};
services = {
@ -172,10 +142,6 @@
pcscd.enable = true;
tailscale = {
enable = true;
};
xserver = {
enable = true;
# Load Nvidia driver for Xorg and Wayland
@ -201,27 +167,12 @@
};
};
virtualisation.docker = {
enable = true;
storageDriver = "btrfs";
rootless = {
enable = true;
setSocketVariable = true;
};
};
qt = {
enable = true;
#platformTheme = "gnome";
#style = "adwaita-dark";
};
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# Enable OpenGL
hardware.graphics = {
enable = true;