massive lsp evaluated rewrite

This commit is contained in:
2024-06-08 23:54:40 -06:00
parent 6ec6eb239a
commit fd340effd9
46 changed files with 227 additions and 242 deletions

View File

@@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: {
options.my.scripts = lib.mkOption {
type = lib.types.attrsOf (lib.types.submodule ({
type = lib.types.attrsOf (lib.types.submodule {
options = {
enable = lib.mkEnableOption "Whether to enable this script";
install = lib.mkEnableOption "Whether to install the script package";
@@ -23,7 +23,7 @@
description = "Package containing the executable script.";
};
};
}));
});
default = { };
description = "Configuration for multiple scripts.";
};

View File

@@ -1,11 +1,11 @@
{ config, lib, pkgs, ... }: {
{ pkgs, ... }: {
imports = [ ./base.nix ];
config = {
home-manager.users.jawz = {
xdg.configFile."gallery-dl/config.json".source =
../../dotfiles/gallery-dl/config.json;
services.lorri.enable = true;
programs = {
xdg.configFile = {
"gallery-dl/config.json".source = ../dotfiles/gallery-dl/config.json;
};
bash = {
shellAliases = {
comic =
@@ -15,27 +15,25 @@
dl = "download -u jawz -i";
};
initExtra = ''
list_root="${config.xdg.configHome}"/jawz/lists/jawz
list_root=$XDG_CONFIG_HOME/jawz/lists/jawz
export LW=$list_root/watch.txt
export LI=$list_root/instant.txt
export LC=$list_root/comic.txt
'';
};
};
services.lorri.enable = true;
};
users.users.jawz.packages = (with pkgs; [ gallery-dl ]);
users.users.jawz.packages = [ pkgs.gallery-dl ];
my.scripts.download = {
enable = true;
install = true;
service = false;
name = "download";
package = with pkgs.python3Packages;
(buildPythonApplication rec {
(buildPythonApplication {
pname = "download";
version = "2.5";
src = ../../scripts/download/.;
doCheck = false;
buildInputs = [ setuptools ];
propagatedBuildInputs = [ pyyaml types-pyyaml yt-dlp ];
});

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: {
{ pkgs, ... }: {
imports = [ ./base.nix ];
config.my.scripts.ffmpeg4discord = {
enable = true;

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: {
{ pkgs, ... }: {
imports = [ ./base.nix ];
config.my.scripts.ffmpreg = {
enable = true;

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: {
{ pkgs, ... }: {
imports = [ ./base.nix ];
config.my.scripts.find-dup-episodes = {
enable = true;

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: {
{ pkgs, ... }: {
imports = [ ./base.nix ];
config.my.scripts.manage-library = {
enable = true;

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: {
{ pkgs, ... }: {
imports = [ ./base.nix ];
config.my.scripts.nextcloud-cronjob = {
enable = true;

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: {
{ pkgs, ... }: {
imports = [ ./base.nix ];
config.my.scripts.pika-list = {
enable = true;

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: {
{ pkgs, ... }: {
imports = [ ./base.nix ];
config.my.scripts.run = {
enable = true;

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: {
{ pkgs, ... }: {
imports = [ ./base.nix ];
config.my.scripts.split-dir = {
enable = true;

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: {
{ pkgs, ... }: {
imports = [ ./base.nix ];
config.my.scripts.sub-sync = {
enable = true;

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: {
{ pkgs, ... }: {
imports = [ ./base.nix ];
config.my.scripts.tasks = {
enable = true;

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: {
{ pkgs, ... }: {
imports = [ ./base.nix ];
config.my.scripts.update-dns = {
enable = true;