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
lsp-mode
org-caldav
envrc
];
};

View File

@ -86,8 +86,6 @@
(use-package hasklig-mode
:hook (haskell-mode))
(use-package company-ghci
:config
(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")
)
;;; init.el ends here
(use-package envrc
:config
(envrc-global-mode))

View File

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

View File

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