From 15ac79b9809996000f989e36a5d7e0cd3d15b52a Mon Sep 17 00:00:00 2001 From: fleaz Date: Mon, 21 Feb 2022 23:43:31 +0100 Subject: [PATCH] Fiddle around with xdg and default_browser --- home-manager/default.nix | 10 ++++++++++ machines/jimbo/configuration.nix | 13 +++---------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/home-manager/default.nix b/home-manager/default.nix index 02be09a..d02dcfe 100644 --- a/home-manager/default.nix +++ b/home-manager/default.nix @@ -16,6 +16,15 @@ in modules/sway.nix ]; + gtk = { + enable = true; + theme.name = "Adwaita"; + }; + + xdg = { + enable = true; + }; + services.gnome-keyring.enable = true; # e.g. for 1password @@ -89,6 +98,7 @@ in EDITOR = "vim"; XDG_SCREENSHOTS_DIR = "/home/fleaz/screenshots/"; PATH = "$PATH:/home/fleaz/bin:/home/fleaz/workspace/go/bin"; + DEFAULT_BROWSER = "${pkgs.firefox}/bin/firefox"; }; oh-my-zsh = { enable = true; diff --git a/machines/jimbo/configuration.nix b/machines/jimbo/configuration.nix index 76f1321..b19a558 100644 --- a/machines/jimbo/configuration.nix +++ b/machines/jimbo/configuration.nix @@ -38,6 +38,9 @@ in # copy the secret into the additional initramfs. `null` means same path boot.initrd.secrets."${secretsFile}" = null; + programs.dconf.enable = true; + + networking.hostName = "jimbo"; # Define your hostname. networking.extraHosts = @@ -65,16 +68,6 @@ in driSupport = true; }; - xdg = { - portal = { - enable = true; - extraPortals = with pkgs; [ - xdg-desktop-portal-wlr - xdg-desktop-portal-gtk - ]; - }; - }; - hardware.bluetooth.enable = true; # Enable CUPS to print documents.