Install direnv
This commit is contained in:
parent
6d0c74ab7f
commit
964fbe8baf
@ -1 +0,0 @@
|
|||||||
((nil . ((projectile-project-compilation-cmd . "./install"))))
|
|
@ -56,6 +56,7 @@
|
|||||||
idris-mode
|
idris-mode
|
||||||
lsp-mode
|
lsp-mode
|
||||||
org-caldav
|
org-caldav
|
||||||
|
envrc
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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))
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,21 +9,20 @@ 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) ({
|
||||||
|
text = genIni {
|
||||||
default = {
|
default = {
|
||||||
"refresh interval" = 1;
|
"refresh interval" = 1;
|
||||||
"show battery charge" = true;
|
"show battery charge" = true;
|
||||||
@ -32,6 +31,7 @@ in {
|
|||||||
low = "20%";
|
low = "20%";
|
||||||
critical = "10%";
|
critical = "10%";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user