Compare commits

..

4 Commits

Author SHA1 Message Date
f6585da4b7 borgmatic: Rework borgmatic config to be a little less silly
Instead of globally excluding by pattern, exclude directories that
contain a .borgignore file

This makes the borg config more scalable across different setups
2026-04-02 13:48:08 +02:00
64336e8f9f Devtools: Add platformio udev rules 2026-04-02 13:48:08 +02:00
efbb990fab Nixvim: Enable formatters using conform.nvim 2026-04-02 13:48:08 +02:00
0f105b5324 Tux: Remount NAS outside $HOME 2026-04-02 13:48:08 +02:00
6 changed files with 29 additions and 8 deletions

View File

@@ -6,7 +6,7 @@
(mount-cifs { (mount-cifs {
host = "duke.veltnet"; host = "duke.veltnet";
resource = "smb-share"; resource = "smb-share";
destination = "/home/weckyy702/duke"; destination = "/mnt/nas";
credentials_path = "${config.age.secrets.nas-creds.path}"; credentials_path = "${config.age.secrets.nas-creds.path}";
UID = "weckyy702"; UID = "weckyy702";
GID = "users"; GID = "users";

View File

@@ -0,0 +1,5 @@
{
flake.modules.nixos.development-tools = { pkgs, ... }: {
services.udev.packages = with pkgs; [ platformio-core.udev ];
};
}

View File

@@ -1,6 +1,7 @@
{ ... }: { { ... }: {
imports = [ imports = [
./lsp.nix ./lsp.nix
./formatter.nix
./telescope ./telescope
./cmp ./cmp
]; ];

View File

@@ -0,0 +1,15 @@
{
plugins.conform-nvim = {
enable = true;
autoInstall.enable = true;
settings = {
formatters_by_ft = {
cpp = [ "clang_format" ];
markdown = [
"prettier"
];
};
formatters = { };
};
};
}

View File

@@ -20,6 +20,8 @@
enable = true; enable = true;
}; };
rnix.enable = true; rnix.enable = true;
basedpyright.enable = true;
}; };
keymaps = [ keymaps = [

View File

@@ -30,14 +30,10 @@
patterns = [ patterns = [
#TODO: home.homeDirectory might be usable here #TODO: home.homeDirectory might be usable here
#TODO: should be user and machine specific #TODO: should be user and machine specific
"R /home/${username}/Documents" "R /home/${username}"
"R /home/${username}/.ssh" "+ /home/${username}/.ssh"
"- /home/${username}/Documents/SteamLibrary" "- /home/${username}/.*"
"- /home/${username}/Documents/PrismLauncher instances"
"- /home/${username}/Documents/.Trash-1000"
"- /home/${username}/Documents/VMs/Data"
"- **/node_modules" "- **/node_modules"
"- **/.git"
"- **/.cache" "- **/.cache"
"- **/*build" "- **/*build"
"- **/target" "- **/target"
@@ -48,6 +44,8 @@
"- **/dist" "- **/dist"
"- **/.pio" "- **/.pio"
]; ];
extraConfig.exclude_if_present = [ ".borgignore" ];
}; };
retention.keepWeekly = 2; retention.keepWeekly = 2;
storage.extraConfig.ssh_command = "ssh -i /home/${username}/.ssh/id_ed25519_borg"; storage.extraConfig.ssh_command = "ssh -i /home/${username}/.ssh/id_ed25519_borg";