summaryrefslogtreecommitdiffstats
path: root/dotfiles.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dotfiles.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/dotfiles.nix b/dotfiles.nix
new file mode 100644
index 0000000..a235620
--- /dev/null
+++ b/dotfiles.nix
@@ -0,0 +1,19 @@
+{
+ config,
+ lib,
+ ...
+}: {
+ options = {
+ dotfiles = {
+ mutable = lib.mkEnableOption "mutable dotfiles";
+
+ path = lib.mkOption {
+ type = lib.types.path;
+ apply = toString;
+ default = "${config.home.homeDirectory}/.dotfiles/";
+ example = "${config.home.homeDirectory}/.dotfiles/astronvim-config";
+ description = "Location of the dotfiles working copy";
+ };
+ };
+ };
+}