diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2021-12-03 12:05:19 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2021-12-03 12:05:19 +0100 |
| commit | b98c7b1acf76feff3c846f7c44cb1ec46546017c (patch) | |
| tree | 6e593d841457aa97ce94e696da801326d345e017 /home/config | |
| parent | cfa23cec90f8bd93ac7bdd44a355ae5899edcf04 (diff) | |
move the source of venv-manager to the ./config dir
Diffstat (limited to 'home/config')
| -rw-r--r-- | home/config/dotfiles/venv-manager.nix | 15 | ||||
| -rw-r--r-- | home/config/environment.nix | 7 |
2 files changed, 20 insertions, 2 deletions
diff --git a/home/config/dotfiles/venv-manager.nix b/home/config/dotfiles/venv-manager.nix new file mode 100644 index 0000000..3bca7bd --- /dev/null +++ b/home/config/dotfiles/venv-manager.nix @@ -0,0 +1,15 @@ +{ lib, ... }: + +{ + direnv.enable = lib.mkDefault true; + + latex.latexmk = { + enable = lib.mkDefault true; + output.pdf.enable = lib.mkDefault true; + rc = lib.optional (lib.pathExists ~/.config/latexmkrc) ~/.config/latexmkrc; + }; + + nix.enable = lib.mkDefault true; + + ocaml.tuareg.enable = lib.mkDefault true; +} diff --git a/home/config/environment.nix b/home/config/environment.nix index 82b6a18..9261502 100644 --- a/home/config/environment.nix +++ b/home/config/environment.nix @@ -32,7 +32,9 @@ programs.bash = { enable = true; - shellAliases = let nix-code-path = "~/code/nix"; + shellAliases = let + nix-code-path = "~/code/nix"; + venv-manager-path = "~/.config/venv-manager"; in { amimullvad = "curl -Ls https://am.i.mullvad.net/connected"; nixos-update-config = @@ -40,7 +42,7 @@ rm = "rm -f"; ssh = "TERM=xterm-256color ssh"; mkenv = '' - cp ${nix-code-path}/shells/shell.nix . ; + cp ${venv-manager-path}/shells/template-shell.nix . ; echo "use_nix" >> .envrc ; direnv allow ; $EDITOR shell.nix ; @@ -66,4 +68,5 @@ }; home.file.".config/latexmkrc".source = ./dotfiles/latexmkrc; + home.file.".config/venv-manager/config/default.nix".source = ./dotfiles/venv-manager.nix; } |
