Add function to sync neovim config to heimdall/freia

This commit is contained in:
Evie Litherland-Smith 2023-06-06 12:33:57 +01:00
parent 879be95abf
commit 9a1a5655c9
2 changed files with 9 additions and 2 deletions

View file

@ -4,7 +4,15 @@
home.homeDirectory = "/home/elitherl";
home.stateVersion = "22.11";
programs.fish.shellAbbrs.hypr = "exec Hyprland";
programs.fish.functions.nvsync = ''
rsync -avz --filter=':- .gitignore' --exclude='.git*'\
--delete-during --delete-excluded\
$HOME/.config/nvim/ heimdall003.jet.uk:.config/nvim
rsync -avz --filter=':- .gitignore' --exclude='.git*'\
--delete-during --delete-excluded\
$HOME/.config/nvim/ freia:.config/nvim
'';
xdg.configFile."hypr/hyprpaper.conf".source = ./hypr/hyprpaper.conf;
wayland.windowManager.hyprland.extraConfig = builtins.readFile ./hypr/hyprland.conf;
programs.waybar = {

View file

@ -5,7 +5,6 @@
home.stateVersion = "22.11";
home.packages = with pkgs; [prismlauncher nomachine-client];
programs.fish.shellAbbrs.hypr = "exec Hyprland";
xdg.configFile."hypr/hyprpaper.conf".source = ./hypr/hyprpaper.conf;
wayland.windowManager.hyprland.extraConfig = builtins.readFile ./hypr/hyprland.conf;
programs.waybar = {