From a75b303a94e8c35d71f3a66ec98bc197eb2bc6ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Krop=C3=A1=C4=8Dek?= Date: Thu, 19 Sep 2024 17:14:01 +0200 Subject: [PATCH] updated config --- hosts/base/default.nix | 13 ++++++++++--- hosts/work-ntb/home.nix | 30 ++++++++++++++++++++++++++---- modules/dev/default.nix | 1 - 3 files changed, 36 insertions(+), 8 deletions(-) diff --git a/hosts/base/default.nix b/hosts/base/default.nix index d23794c..b909cf9 100644 --- a/hosts/base/default.nix +++ b/hosts/base/default.nix @@ -49,6 +49,7 @@ # Enable the GNOME Desktop Environment. services.xserver.displayManager.gdm.enable = true; services.xserver.desktopManager.gnome.enable = true; + services.gnome.gnome-browser-connector.enable = true; environment.gnome.excludePackages = with pkgs; [ epiphany @@ -68,7 +69,7 @@ # Enable CUPS to print documents. services.printing = { - enable = true; + enable = true; drivers = [ pkgs.samsung-unified-linux-driver ]; }; @@ -121,6 +122,9 @@ gh gparted dig + prismlauncher # REMOVE AND MOVE TO games module after refactoring + gnome-extension-manager # DEBUG + gnomeExtensions.grand-theft-focus ]; @@ -145,7 +149,7 @@ "org.gnome.World.PikaBackup" "ca.desrt.dconf-editor" "org.onlyoffice.desktopeditors" - "tv.kodi.Kodi" + "tv.kodi.Kodi" ]; }; @@ -166,7 +170,10 @@ # Enable the OpenSSH daemon. # services.openssh.enable = true; - + networking = { + nftables.enable = true; + firewall.checkReversePath = "loose"; + }; # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ]; diff --git a/hosts/work-ntb/home.nix b/hosts/work-ntb/home.nix index 547c7f5..40713cb 100644 --- a/hosts/work-ntb/home.nix +++ b/hosts/work-ntb/home.nix @@ -16,6 +16,7 @@ # The home.packages option allows you to install Nix packages into your # environment. home.packages = with pkgs; [ + gnomeExtensions.grand-theft-focus # # Adds the 'hello' command to your environment. It prints a friendly # # "Hello, world!" when run. # hello @@ -69,6 +70,16 @@ # EDITOR = "emacs"; }; + dconf = { + enable = true; + settings."org/gnome/shell" = { + disable-user-extensions = false; + enabled-extensions = with pkgs.gnomeExtensions; [ + grand-theft-focus.extensionUuid + ]; + }; + }; + gtk = { enable = true; gtk3.extraConfig = { @@ -85,7 +96,7 @@ qt = { enable = true; - platformTheme.name = "adwaita"; + platformTheme.name = "adwaita"; # TODO: fix themes style.name = "adwaita-dark"; }; @@ -94,9 +105,20 @@ enable = true; userName = "Jakub Kropáček"; userEmail = "kropikuba@gmail.com"; - includes = [ - {path = "~/Repositories/OLC/.gitconfig"; condition = "gitdir:~/Repositories/OLC/**";} - {path = "~/Repositories/OLC-Hexpol/.gitconfig"; condition = "gitdir:~/Repositories/OLC-Hexpol/**";} + includes = let workcfg = { + user = { + email = "jakub.kropacek@olc.cz"; + name = "Jakub Kropáček"; + }; + }; in [ + { + condition = "gitdir:~/Repositories/OLC/**"; + contents = workcfg; + } + { + condition = "gitdir:~/Repositories/OLC-Hexpol/**"; + contents = workcfg; + } ]; extraConfig = { init = { diff --git a/modules/dev/default.nix b/modules/dev/default.nix index e9168c0..e4f5078 100644 --- a/modules/dev/default.nix +++ b/modules/dev/default.nix @@ -20,7 +20,6 @@ in { ides = with pkgs; [ jetbrains.pycharm-professional zed-editor - vscode vscodium ]; languages = with pkgs; [