Install direnv

This commit is contained in:
Alexander Bantyev 2021-02-28 19:06:01 +03:00
parent 6d0c74ab7f
commit 964fbe8baf
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
5 changed files with 29 additions and 23 deletions

View File

@ -1 +0,0 @@
((nil . ((projectile-project-compilation-cmd . "./install"))))

View File

@ -56,6 +56,7 @@
idris-mode idris-mode
lsp-mode lsp-mode
org-caldav org-caldav
envrc
]; ];
}; };

View File

@ -86,8 +86,6 @@
(use-package hasklig-mode (use-package hasklig-mode
:hook (haskell-mode)) :hook (haskell-mode))
(use-package company-ghci (use-package company-ghci
:config :config
(push 'company-ghci company-backends)) (push 'company-ghci company-backends))
@ -238,3 +236,7 @@ If point was already at that position, move point to beginning of line."
(setq org-icalendar-timezone "Europe/Moscow") (setq org-icalendar-timezone "Europe/Moscow")
) )
;;; init.el ends here ;;; init.el ends here
(use-package envrc
:config
(envrc-global-mode))

View File

@ -20,6 +20,10 @@
dbPath = ../../misc/programs.sqlite; dbPath = ../../misc/programs.sqlite;
}; };
systemd.user.startServices = true; systemd.user.startServices = true;
programs.direnv.enable = true;
programs.direnv.enableNixDirenvIntegration = true;
}; };

View File

@ -9,29 +9,29 @@ let
}; };
inherit (import ../../support.nix { inherit lib config; }) genIni; inherit (import ../../support.nix { inherit lib config; }) genIni;
daemons = names: daemons = names:
builtins.listToAttrs (builtins.map (name: builtins.listToAttrs (builtins.map (name: {
{ name = "simple-osd-${name}";
name = "simple-osd-${name}"; value = simple-osd-daemon name;
value = simple-osd-daemon name; }) names);
}) names);
in { in {
home-manager.users.balsoft = { home-manager.users.balsoft = {
systemd.user.services = systemd.user.services = daemons [ "pulseaudio" "mpris" ]
daemons [ "pulseaudio" "mpris" ]
// pkgs.lib.optionalAttrs (config.deviceSpecific.isLaptop) // pkgs.lib.optionalAttrs (config.deviceSpecific.isLaptop)
(daemons [ "battery" "brightness" ]); (daemons [ "battery" "brightness" ]);
xdg.configFile."simple-osd/common".text = genIni { xdg.configFile."simple-osd/common".text =
progressbar.length = 25; genIni { progressbar.length = 25; };
}; xdg.configFile."simple-osd/battery" =
xdg.configFile."simple-osd/battery".text = lib.mkIf (config.deviceSpecific.isLaptop) (genIni { lib.mkIf (config.deviceSpecific.isLaptop) ({
default = { text = genIni {
"refresh interval" = 1; default = {
"show battery charge" = true; "refresh interval" = 1;
}; "show battery charge" = true;
threshold = { };
low = "20%"; threshold = {
critical = "10%"; low = "20%";
}; critical = "10%";
}); };
};
});
}; };
} }