{ pkgs, ... }: { nix.gc = { automatic = true; dates = "weekly"; options = "--delete-older-than 1w"; }; # Remove old gtkrc file, otherwise it will not work system.userActivationScripts = { removeConflictingFiles = { text = '' rm -f /home/r3ddy/.gtkrc-2.0.backup ''; }; }; networking.hostName = "nixos"; # Define your hostname. networking.networkmanager.enable = true; networking.firewall.allowedUDPPorts = [ 25565 ]; networking.firewall.allowedTCPPorts = [ 25565 ]; hardware.bluetooth.enable = true; hardware.bluetooth.powerOnBoot = true; time.timeZone = "Europe/Rome"; # Select internationalisation properties. i18n.defaultLocale = "en_US.UTF-8"; i18n.extraLocaleSettings = { LC_ADDRESS = "it_IT.UTF-8"; LC_IDENTIFICATION = "it_IT.UTF-8"; LC_MEASUREMENT = "it_IT.UTF-8"; LC_MONETARY = "it_IT.UTF-8"; LC_NAME = "it_IT.UTF-8"; LC_NUMERIC = "it_IT.UTF-8"; LC_PAPER = "it_IT.UTF-8"; LC_TELEPHONE = "it_IT.UTF-8"; LC_TIME = "it_IT.UTF-8"; }; environment.sessionVariables = { NIXOS_OZONE_WL = "1"; # Use Wayland when possible (this does not seem to work) ELECTRON_OZONE_PLATFORM_HINT = "wayland"; GOPATH = "$HOME/.go"; }; # Enable sound with pipewire. services.pulseaudio.enable = false; security.rtkit.enable = true; programs.fish.enable = true; # This must be true before initializing my user users.users.r3ddy = { isNormalUser = true; description = "Patrick Canal"; extraGroups = [ "networkmanager" "wheel" "docker" ]; shell = pkgs.fish; }; fonts.packages = with pkgs; [ nerd-fonts.jetbrains-mono ]; nixpkgs.config.allowUnfree = true; nix.settings.experimental-features = [ "nix-command" "flakes" ]; environment.systemPackages = with pkgs; [ # CLI utils appimage-run btop busybox distrobox docker fish fzf git gnumake htop jq killall md2pdf nmap python3 ripgrep tree unzip wget wl-clipboard xdotool xorg.xwininfo yad zip zoxide zulu # Man pages man-pages vim # The only and one great editor # neovim # The only and one great editor improved even further # Video card vulkan-tools # Gaming dolphin-emu heroic mangohud prismlauncher steam vesktop # GUI applications baobab brave kdePackages.xdg-desktop-portal-kde kitty libresprite mpv nextcloud-client spotube telegram-desktop ]; programs.steam.enable = true; programs.steam.remotePlay.openFirewall = true; 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; }