From d5c760d9813d66de71786c6343afa8c4b1526696 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 16 Jul 2023 10:55:37 +0300 Subject: 2023-07-16 --- modules/common/direnv.nix | 16 ++++++++++------ modules/nixos/common/services.nix | 2 ++ modules/nixos/common/xdg.nix | 1 - modules/nixos/kde.nix | 2 +- modules/nixos/profiles/headful.nix | 1 + 5 files changed, 14 insertions(+), 8 deletions(-) (limited to 'modules') diff --git a/modules/common/direnv.nix b/modules/common/direnv.nix index 6ec39d1..743f3cf 100644 --- a/modules/common/direnv.nix +++ b/modules/common/direnv.nix @@ -10,13 +10,17 @@ in { mkEnableOption "direnv"; config = mkIf cfg.enable { - hm.programs.direnv = { - enable = true; - config.global = { - strict_env = true; - warn_timeout = 0; + hm = { + home.sessionVariables.DIRENV_LOG_FORMAT = ""; + + programs.direnv = { + enable = true; + config.global = { + strict_env = true; + warn_timeout = "1h"; + }; + nix-direnv.enable = true; }; - nix-direnv.enable = true; }; }; } diff --git a/modules/nixos/common/services.nix b/modules/nixos/common/services.nix index 725502a..c97e86a 100644 --- a/modules/nixos/common/services.nix +++ b/modules/nixos/common/services.nix @@ -6,5 +6,7 @@ _: { # https://github.com/NixOS/nixpkgs/issues/135888 nscd.enableNsncd = true; + + dbus.implementation = "broker"; }; } diff --git a/modules/nixos/common/xdg.nix b/modules/nixos/common/xdg.nix index d74bf82..fb762ab 100644 --- a/modules/nixos/common/xdg.nix +++ b/modules/nixos/common/xdg.nix @@ -17,7 +17,6 @@ with lib; { xdg.portal = mkIf this.isHeadful { enable = true; - xdgOpenUsePortal = true; }; hm.xdg = mkMerge [ diff --git a/modules/nixos/kde.nix b/modules/nixos/kde.nix index 05be874..17fcf03 100644 --- a/modules/nixos/kde.nix +++ b/modules/nixos/kde.nix @@ -17,7 +17,7 @@ in { }; hm = { - # home.sessionVariables.GTK_USE_PORTAL = 1; + home.sessionVariables.GTK_USE_PORTAL = 1; programs.firefox.profiles.default.settings = { "widget.use-xdg-desktop-portal.file-picker" = 1; diff --git a/modules/nixos/profiles/headful.nix b/modules/nixos/profiles/headful.nix index 795c4c3..ac1a735 100644 --- a/modules/nixos/profiles/headful.nix +++ b/modules/nixos/profiles/headful.nix @@ -98,6 +98,7 @@ in { }; programs = { + dconf.enable = true; iftop.enable = true; mtr.enable = true; }; -- cgit 1.4.1