From f94101045c8454f6bfc97e127453ee425c260d78 Mon Sep 17 00:00:00 2001 From: 514fpv Date: Thu, 4 Jan 2024 12:26:34 +0800 Subject: [PATCH] feat: add helpful packages and persistence --- home/util/home.nix | 13 +++++++++++++ home/util/nixos.nix | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 home/util/home.nix create mode 100644 home/util/nixos.nix diff --git a/home/util/home.nix b/home/util/home.nix new file mode 100644 index 00000000..3d37a054 --- /dev/null +++ b/home/util/home.nix @@ -0,0 +1,13 @@ +{ pkgs +, lib +, config +, ... }: with lib; { + home.packages = with pkgs; [ + pciutils usbutils lsscsi + ] ++ optionals config.passthrough.gui [ + mission-planner + betaflight-configurator + inav-configurator + inav-blackbox-tools + ]; +} diff --git a/home/util/nixos.nix b/home/util/nixos.nix new file mode 100644 index 00000000..c93ca39a --- /dev/null +++ b/home/util/nixos.nix @@ -0,0 +1,13 @@ +{ pkgs +, lib +, config +, ... }: with lib; let + gui = with config.faucet.gui; ( enable && session ); +in { + users.home.persist.directories = [ ] ++ + optionals gui [ + ".local/share/Mission Planner" + ".config/betaflight-configurator" + ".config/inav-configurator" + ]; +}