Refactor: ..., also: Added vim-lastplace and tmate

This commit is contained in:
kat witch 2021-05-07 00:49:01 +01:00
parent 386fe7a2c0
commit 46169bc8c2
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
103 changed files with 142 additions and 167 deletions

View file

@ -4,6 +4,7 @@
disabledModules = [ "programs/vim.nix" ];
imports = [
./vim.nix
./deploy-tf
(sources.tf-nix + "/modules/home/secrets.nix")
(import (sources.arc-nixexprs + "/modules")).home-manager.base16
(import (sources.arc-nixexprs + "/modules")).home-manager.syncplay

View file

@ -0,0 +1,33 @@
{ config, lib, ... }:
with lib;
let
cfg = config.deploy.tf;
unmergedValues = types.mkOptionType {
name = "unmergedValues";
merge = loc: defs: map (def: def.value) defs;
};
in {
options.deploy.tf = mkOption {
type = types.submodule {
freeformType = types.attrsOf unmergedValues;
options = {
attrs = mkOption {
type = types.listOf types.str;
default = [ ];
};
out.set = mkOption { type = types.unspecified; };
};
};
};
config = {
deploy.tf = {
attrs = [ "out" "attrs" ];
out.set = removeAttrs cfg cfg.attrs;
};
};
}