add files
This commit is contained in:
parent
919f3ba969
commit
d3ff717341
6 changed files with 122 additions and 58 deletions
|
|
@ -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
24
options/common/file.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
{ lib, ... }: {
|
||||
options.device = {
|
||||
symlink = lib.mkOption {
|
||||
default = {};
|
||||
type = lib.types.attrsOf lib.types.str;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in a new issue