further figration
This commit is contained in:
parent
c3d20aa28f
commit
8664061145
@ -17,6 +17,7 @@ in
|
||||
++ inputs.self.lib.autoImport ./shell filterNames
|
||||
++ inputs.self.lib.autoImport ./network filterNames
|
||||
++ [
|
||||
./factories/mkscript.nix
|
||||
./nix/build.nix
|
||||
./users/nixremote.nix
|
||||
];
|
||||
|
||||
@ -6,7 +6,6 @@
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ ../factories/mkscript.nix ];
|
||||
options.my.units = {
|
||||
download.enable = lib.mkEnableOption "media download automation scripts";
|
||||
downloadManga.enable = lib.mkEnableOption "manga download automation";
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
{ inputs, lib, ... }:
|
||||
{
|
||||
imports = [ ../factories/mkscript.nix ];
|
||||
config.my.scripts.ffmpeg4discord = {
|
||||
enable = lib.mkDefault false;
|
||||
install = true;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
{ inputs, lib, ... }:
|
||||
{
|
||||
imports = [ ../factories/mkscript.nix ];
|
||||
config.my.scripts.ffmpreg = {
|
||||
enable = lib.mkDefault false;
|
||||
install = true;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
{ inputs, lib, ... }:
|
||||
{
|
||||
imports = [ ../factories/mkscript.nix ];
|
||||
config.my.scripts.find-dup-episodes = {
|
||||
enable = lib.mkDefault false;
|
||||
install = true;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
{ inputs, lib, ... }:
|
||||
{
|
||||
imports = [ ../factories/mkscript.nix ];
|
||||
config.my.scripts.library-report = {
|
||||
enable = lib.mkDefault false;
|
||||
install = true;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
{ inputs, lib, ... }:
|
||||
{
|
||||
imports = [ ../factories/mkscript.nix ];
|
||||
config.my.scripts.manage-library = {
|
||||
enable = lib.mkDefault false;
|
||||
install = true;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
{ inputs, lib, ... }:
|
||||
{
|
||||
imports = [ ../factories/mkscript.nix ];
|
||||
config.my.scripts.pika-list = {
|
||||
enable = lib.mkDefault false;
|
||||
install = true;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
{ inputs, lib, ... }:
|
||||
{
|
||||
imports = [ ../factories/mkscript.nix ];
|
||||
config.my.scripts.run = {
|
||||
enable = lib.mkDefault false;
|
||||
install = true;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
{ inputs, lib, ... }:
|
||||
{
|
||||
imports = [ ../factories/mkscript.nix ];
|
||||
config.my.scripts.split-dir = {
|
||||
enable = lib.mkDefault false;
|
||||
install = true;
|
||||
|
||||
@ -6,7 +6,6 @@
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ ../factories/mkscript.nix ];
|
||||
options.my.units.stream-dl.enable = lib.mkEnableOption "streaming media download service";
|
||||
config =
|
||||
let
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
{ inputs, lib, ... }:
|
||||
{
|
||||
imports = [ ../factories/mkscript.nix ];
|
||||
config.my.scripts.tasks = {
|
||||
enable = lib.mkDefault false;
|
||||
install = true;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
{ inputs, lib, ... }:
|
||||
{
|
||||
imports = [ ../factories/mkscript.nix ];
|
||||
config.my.scripts.tuh-activity-logger = {
|
||||
enable = lib.mkDefault false;
|
||||
install = true;
|
||||
|
||||
@ -6,7 +6,6 @@
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ ../factories/mkscript.nix ];
|
||||
config = lib.mkIf config.my.secureHost {
|
||||
sops.secrets = {
|
||||
cloudflare-api.sopsFile = ../../secrets/env.yaml;
|
||||
|
||||
@ -5,7 +5,6 @@
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ ../factories/mkscript.nix ];
|
||||
config.my.scripts.update-org-agenda-cache = {
|
||||
enable = lib.mkDefault false;
|
||||
install = config.my.emacs.enable;
|
||||
|
||||
@ -29,11 +29,7 @@ in
|
||||
};
|
||||
widgets = import ./homepage/widgets.nix;
|
||||
services = import ./homepage/services.nix { inherit lib config; };
|
||||
bookmarks =
|
||||
builtins.readDir ./homepage/bookmarks
|
||||
|> builtins.attrNames
|
||||
|> builtins.filter (file: builtins.match ".*\\.nix" file != null)
|
||||
|> map (file: import ./homepage/bookmarks/${file});
|
||||
bookmarks = inputs.self.lib.autoImport ./homepage/bookmarks (_: true) |> map import;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
@ -24,7 +25,7 @@
|
||||
};
|
||||
gallery-dl = {
|
||||
enable = true;
|
||||
settings = import ../../dotfiles/gallery-dl.nix;
|
||||
settings = inputs.self.lib.importDotfile ../../dotfiles/gallery-dl.nix;
|
||||
};
|
||||
${config.my.shell.type} = {
|
||||
initExtra = lib.mkAfter ''
|
||||
|
||||
@ -196,6 +196,29 @@ in
|
||||
shellType: bashContent: zshContent:
|
||||
if shellType == "bash" then { initExtra = bashContent; } else { initContent = zshContent; };
|
||||
mergeAliases = baseAliases: extraAliases: baseAliases // extraAliases;
|
||||
importDotfile = path: import path;
|
||||
mkScriptOptions = lib: {
|
||||
enable = lib.mkEnableOption "Whether to enable this script";
|
||||
install = lib.mkEnableOption "Whether to install the script package";
|
||||
service = lib.mkEnableOption "Whether to enable the script service";
|
||||
name = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "Name of the script.";
|
||||
};
|
||||
timer = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "*:0";
|
||||
description = "Systemd timer schedule.";
|
||||
};
|
||||
description = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "Description of the service.";
|
||||
};
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
description = "Package containing the executable script.";
|
||||
};
|
||||
};
|
||||
getServicesWithNativeFirewall =
|
||||
config: blacklist:
|
||||
config.my.servers
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user