From 2f2c1e2922aba9f485b86ed766e2d8dad5f4ec90 Mon Sep 17 00:00:00 2001 From: Muhammad Faizud Daroin Date: Tue, 4 Mar 2025 21:05:24 +0700 Subject: [PATCH] fix: add more packages --- configuration.nix | 52 ++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 42 insertions(+), 10 deletions(-) diff --git a/configuration.nix b/configuration.nix index e1f5e6c..40a6fc3 100644 --- a/configuration.nix +++ b/configuration.nix @@ -5,7 +5,9 @@ # { config, pkgs, riderpkgs, ... }: { config, pkgs, ... }: -{ +let + unstable = import {}; +in { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix @@ -26,7 +28,7 @@ options = [ "rw" "uid=1000" ]; }; - networking.hostName = "nixos"; # Define your hostname. + networking.hostName = "unicorn"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # Configure network proxy if necessary @@ -101,6 +103,11 @@ dataDir = "/home/bandeng/Sync"; # Default folder for new synced folders }; services.tailscale.enable = true; + services.mullvad-vpn.enable = true; + services.vnstat.enable = true; + services.devmon.enable = true; + services.gvfs.enable = true; + services.udisks2.enable = true; # Enable OpenGL hardware.graphics = { @@ -154,9 +161,12 @@ extraGroups = [ "networkmanager" "wheel" "docker" "autologin" ]; packages = with pkgs; [ # thunderbird - opera + firefox ]; }; + nix.extraOptions = '' + trusted-users = root bandeng + ''; users.defaultUserShell = pkgs.fish; @@ -197,7 +207,7 @@ # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ - neovim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. + unstable.neovim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. wget fzf ripgrep @@ -233,8 +243,8 @@ wofi dunst hyprpaper zoxide - libsForQt5.qt5ct qt6ct + libsForQt5.qt5ct networkmanagerapplet bluez pavucontrol @@ -249,11 +259,12 @@ adwaita-qt6 xdg-desktop-portal-gtk xdg-desktop-portal-hyprland - nemo-with-extensions + xdg-user-dirs + nautilus gvfs hyprcursor loupe - microsoft-edge + google-chrome asdf-vm kdePackages.kdeconnect-kde file-roller @@ -272,20 +283,31 @@ bottles sddm-sugar-dark killall + qbittorrent + eww + kdePackages.qtstyleplugin-kvantum + kdePackages.qtsvg + gdk-pixbuf + mullvad-vpn + wayvnc + libnotify + devenv + android-studio + qdirstat + cava + fuse + dotnet-sdk # riderpkgs.jetbrains.rider ]; fonts.packages = with pkgs; [ noto-fonts noto-fonts-cjk-sans - noto-fonts-cjk-serif - noto-fonts-emoji noto-fonts-extra cantarell-fonts inter (nerdfonts.override { fonts = [ "Iosevka" "FiraCode" ]; }) ]; - fonts.fontDir.enable = true; # Some programs need SUID wrappers, can be configured further or are # started in user sessions. @@ -308,6 +330,16 @@ networking.firewall.allowedTCPPorts = [ 22000 ]; networking.firewall.allowedUDPPorts = [ 22000 21027 ]; networking.interfaces.enp4s0.wakeOnLan.enable = true; + # networking.enableIPv6 = false; + networking.nameservers = [ "8.8.8.8" "8.8.4.4" ]; + services.resolved = { + enable = true; + dnssec = "true"; + domains = [ "~." ]; + fallbackDns = [ "8.8.8.8 8.8.4.4" ]; + dnsovertls = "true"; + }; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; virtualisation.docker.enable = true;