Added direnv
This commit is contained in:
@@ -87,14 +87,14 @@
|
|||||||
:tools
|
:tools
|
||||||
;;ansible
|
;;ansible
|
||||||
;;debugger ; FIXME stepping through code, to help you add bugs
|
;;debugger ; FIXME stepping through code, to help you add bugs
|
||||||
;;direnv
|
direnv
|
||||||
;;docker
|
;;docker
|
||||||
;;editorconfig ; let someone else argue about tabs vs spaces
|
;;editorconfig ; let someone else argue about tabs vs spaces
|
||||||
;;ein ; tame Jupyter notebooks with emacs
|
;;ein ; tame Jupyter notebooks with emacs
|
||||||
(eval +overlay) ; run code, run (also, repls)
|
(eval +overlay) ; run code, run (also, repls)
|
||||||
;;gist ; interacting with github gists
|
;;gist ; interacting with github gists
|
||||||
lookup ; navigate your code and its documentation
|
lookup ; navigate your code and its documentation
|
||||||
;;lsp
|
lsp
|
||||||
magit ; a git porcelain for Emacs
|
magit ; a git porcelain for Emacs
|
||||||
;;make ; run make tasks from Emacs
|
;;make ; run make tasks from Emacs
|
||||||
;;pass ; password manager for nerds
|
;;pass ; password manager for nerds
|
||||||
@@ -160,7 +160,8 @@
|
|||||||
rest ; Emacs as a REST client
|
rest ; Emacs as a REST client
|
||||||
;;rst ; ReST in peace
|
;;rst ; ReST in peace
|
||||||
;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
|
;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
|
||||||
;;rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
|
(rust
|
||||||
|
+lsp) ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
|
||||||
;;scala ; java, but good
|
;;scala ; java, but good
|
||||||
;;scheme ; a fully conniving family of lisps
|
;;scheme ; a fully conniving family of lisps
|
||||||
sh ; she sells {ba,z,fi}sh shells on the C xor
|
sh ; she sells {ba,z,fi}sh shells on the C xor
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
# See modules/common.nix for common packages installed
|
# See modules/common.nix for common packages installed
|
||||||
|
|
||||||
# - System -----------------------------------
|
# - System -----------------------------------
|
||||||
|
system.utils.enable = true;
|
||||||
|
|
||||||
# - Desktop ----------------------------------
|
# - Desktop ----------------------------------
|
||||||
desktop = {
|
desktop = {
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
# See modules/common.nix for common packages installed
|
# See modules/common.nix for common packages installed
|
||||||
|
|
||||||
# - System -----------------------------------
|
# - System -----------------------------------
|
||||||
|
system.utils.enable = true;
|
||||||
system.bluetooth.enable = true;
|
system.bluetooth.enable = true;
|
||||||
system.nvidia = {
|
system.nvidia = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -41,6 +42,8 @@
|
|||||||
dev.git.userName = "marc";
|
dev.git.userName = "marc";
|
||||||
dev.git.userEmail = "marc@sastre.cat";
|
dev.git.userEmail = "marc@sastre.cat";
|
||||||
|
|
||||||
|
dev.direnv.enable = true;
|
||||||
|
|
||||||
# - Other apps -------------------------------
|
# - Other apps -------------------------------
|
||||||
app.spotify.enable = true;
|
app.spotify.enable = true;
|
||||||
|
|
||||||
|
|||||||
22
modules/dev/direnv.nix
Normal file
22
modules/dev/direnv.nix
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.samfelag.modules.dev.direnv;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.samfelag.modules.dev.direnv = {
|
||||||
|
enable = lib.mkEnableOption "direnv";
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
hm.programs.direnv = {
|
||||||
|
enable = true;
|
||||||
|
nix-direnv.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Optional: To protect your nix-shell against garbage collection
|
||||||
|
nix.extraOptions = ''
|
||||||
|
keep-outputs = true
|
||||||
|
keep-derivations = true
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -92,7 +92,7 @@ in {
|
|||||||
|
|
||||||
fonts.fonts = [ pkgs.emacs-all-the-icons-fonts ];
|
fonts.fonts = [ pkgs.emacs-all-the-icons-fonts ];
|
||||||
|
|
||||||
env.PATH = [ "$XDG_CONFIG_HOME/emacs/bin" ];
|
env.PATH = [ "$HOME/.config/emacs/bin" ];
|
||||||
|
|
||||||
home-manager.users.marc.xdg.configFile."doom".source = ../../config/doom;
|
home-manager.users.marc.xdg.configFile."doom".source = ../../config/doom;
|
||||||
|
|
||||||
|
|||||||
16
modules/system/utils.nix
Normal file
16
modules/system/utils.nix
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{ config, lib, pkgs, self, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.samfelag.modules.system.utils;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.samfelag.modules.system.utils = {
|
||||||
|
enable = lib.mkEnableOption "utils";
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
zip
|
||||||
|
unzip
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user