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;
};
};
}

View file

@ -1,18 +1,18 @@
{ lib, ... }: {
imports = [
../common/default.nix
{ lib, ... }:
{
imports = [
../common/default.nix
./environment.nix
./programs.nix
./hardware.nix
./file.nix
];
./environment.nix
./programs.nix
./hardware.nix
];
options.device = {
cursors = lib.mkOption {
type = lib.types.str;
default = "aemeath";
description = "Cursor theme to use for the desktop";
};
options.device = {
cursors = lib.mkOption {
type = lib.types.str;
default = "aemeath";
description = "Cursor theme to use for the desktop";
};
}
};
}

View file

@ -1,8 +0,0 @@
{ lib, ... }: {
options.device = {
symlink = lib.mkOption {
default = {};
type = lib.types.attrsOf lib.types.str;
};
};
}