add files

This commit is contained in:
Asaki Yuki 2026-04-13 18:40:55 +07:00
parent 919f3ba969
commit d3ff717341
6 changed files with 122 additions and 58 deletions

View file

@ -1,6 +1,9 @@
{ lib, ... }:
{
imports = [ ./programs.nix ];
imports = [
./programs.nix
./file.nix
];
options.device = {
flatpak.enable = lib.mkEnableOption "flatpak";

24
options/common/file.nix Normal file
View file

@ -0,0 +1,24 @@
{ lib, ... }:
{
options.device.files = {
symlink = lib.mkOption {
default = { };
type = lib.types.attrsOf lib.types.str;
};
source = lib.mkOption {
default = { };
type = lib.types.attrsOf lib.types.path;
};
force = lib.mkOption {
default = { };
type = lib.types.attrsOf lib.types.bool;
};
mkForce = lib.mkOption {
default = { };
type = lib.types.attrsOf lib.types.bool;
};
};
}