restructured repo to support nix-darwin
This commit is contained in:
parent
3924a5aa8d
commit
0d0443a02a
47 changed files with 111 additions and 34 deletions
9
modules/nixos-modules/home-manager/flipperzero.nix
Normal file
9
modules/nixos-modules/home-manager/flipperzero.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
home-users = lib.attrsets.mapAttrsToList (_: user: user) config.home-manager.users;
|
||||
in {
|
||||
hardware.flipperzero.enable = lib.lists.any (home-user: home-user.hardware.flipperzero.enable) home-users;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue