mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-02-07 12:19:36 +00:00
skeleton: init
This commit is contained in:
commit
2464982626
33
modules/home-manager/fetch-mutable-files.nix
Normal file
33
modules/home-manager/fetch-mutable-files.nix
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{ config, options, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.home.mutableFiles;
|
||||||
|
file = { config, name, ... }: {
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.home.mutableFile = lib.mkOption {
|
||||||
|
type = with lib.types; attrsOf (submodule file);
|
||||||
|
default = { };
|
||||||
|
description = lib.mkDoc ''
|
||||||
|
An attribute set of mutable files and directories to be fetched into the
|
||||||
|
home directory.
|
||||||
|
'';
|
||||||
|
example = lib.literalExpression ''
|
||||||
|
"''${config.xdg.userDirs.documents}/dotfiles" = {
|
||||||
|
url = "https://github.com/foo-dogsquared/dotfiles.git";
|
||||||
|
type = "git";
|
||||||
|
};
|
||||||
|
|
||||||
|
"''${config.xdg.userDirs.documents}/top-secret" = {
|
||||||
|
url = "https://example.com/file.zip";
|
||||||
|
type = "fetch";
|
||||||
|
};
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
config = {
|
||||||
|
systemd.user.services.fetch-mutable-files = {
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user