home(gyroflow): add package and module

This commit is contained in:
514fpv 2024-01-10 23:49:00 +08:00
parent be218acda0
commit 42998400b1
Signed by: koishi
SSH key fingerprint: SHA256:2jRvFSzG5UeUlQ3WxZ2sbUOfo5wNKzv1fZsk/FexKjQ
4 changed files with 310 additions and 0 deletions

19
home/gyroflow/nixos.nix Normal file
View file

@ -0,0 +1,19 @@
{ pkgs
, lib
, config
, ... }: with lib; let
cfg = config.home.gyroflow;
in {
options.home.gyroflow = {
enable = mkEnableOption "gyroflow stabilisation software";
};
config = {
users.homeModules = [
# this module passes gyroflow configuration to home-manager
{ passthrough.gyroflow = cfg; }
];
users.home.persist.directories = [ ".config/Gyroflow" ];
};
}