Added devenv and moved config files
This commit is contained in:
@@ -16,7 +16,7 @@ in
|
||||
(nerdfonts.override { fonts = [ "Iosevka" ]; })
|
||||
];
|
||||
|
||||
hm.xdg.configFile."alacritty/alacritty.yml".source = ../../config/.config/alacritty/alacritty.yml;
|
||||
hm.xdg.configFile."alacritty/alacritty.yml".source = ../../config/alacritty/alacritty.yml;
|
||||
|
||||
# - Themeing ---------------------------------
|
||||
hm.xdg.configFile."alacritty/theme.yml".text = ''
|
||||
|
||||
@@ -13,9 +13,9 @@ let
|
||||
'';
|
||||
# Paths
|
||||
paths = {
|
||||
config = ../../config/.config/polybar/config.ini;
|
||||
bars = ../../config/.config/polybar/bars;
|
||||
scripts = ../../config/.config/polybar/scripts;
|
||||
config = ../../config/polybar/config.ini;
|
||||
bars = ../../config/polybar/bars;
|
||||
scripts = ../../config/polybar/scripts;
|
||||
};
|
||||
in {
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ in
|
||||
rofi
|
||||
];
|
||||
|
||||
hm.xdg.configFile."rofi/menus".source = ../../config/.config/rofi/menus;
|
||||
hm.xdg.configFile."rofi/menus".source = ../../config/rofi/menus;
|
||||
hm.xdg.configFile."rofi/nix.png".source = nix-colors-lib.nixWallpaperFromScheme {
|
||||
scheme = config.colorScheme;
|
||||
width = 600;
|
||||
|
||||
26
modules/dev/devenv.nix
Normal file
26
modules/dev/devenv.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
# Custom package to quickly set up development environments for different
|
||||
# programing languages
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.samfelag.modules.dev.devenv;
|
||||
in
|
||||
{
|
||||
options.samfelag.modules.dev.devenv = {
|
||||
enable = lib.mkEnableOption "devenv";
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
hm.xdg.dataFile."devenv/devenv.sh".source = ../../data/devenv/devenv.sh;
|
||||
hm.xdg.dataFile."devenv/templates".source = ../../data/devenv/templates;
|
||||
|
||||
hm.programs.zsh.shellAliases = {
|
||||
devenv = "source $HOME/.local/share/devenv/devenv.sh";
|
||||
};
|
||||
|
||||
# - Requirements -----------------------------
|
||||
samfelag.modules.dev.direnv.enable = true;
|
||||
|
||||
};
|
||||
}
|
||||
@@ -17,6 +17,6 @@ in
|
||||
ripgrep
|
||||
tldr
|
||||
];
|
||||
hm.xdg.configFile."shell".source = ../../config/.config/shell;
|
||||
hm.xdg.configFile."shell".source = ../../config/shell;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ in
|
||||
];
|
||||
};
|
||||
|
||||
hm.xdg.configFile."zsh/.p10k.zsh".source = ../../config/.config/zsh/.p10k.zsh;
|
||||
hm.xdg.configFile."zsh/.p10k.zsh".source = ../../config/zsh/.p10k.zsh;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user