nixfmt fix

This commit is contained in:
2024-06-08 20:02:41 -06:00
parent 46cdbd8a09
commit 6ec6eb239a
22 changed files with 223 additions and 420 deletions

View File

@@ -1,10 +1,4 @@
{
config,
lib,
pkgs,
...
}:
{
{ config, lib, pkgs, ... }: {
imports = [ ./base.nix ];
config = {
home-manager.users.jawz = {
@@ -14,8 +8,10 @@
};
bash = {
shellAliases = {
comic = ''download -u jawz -i "$(cat $LC | fzf --multi --exact -i)"'';
gallery = ''download -u jawz -i "$(cat $LW | fzf --multi --exact -i)"'';
comic =
''download -u jawz -i "$(cat $LC | fzf --multi --exact -i)"'';
gallery =
''download -u jawz -i "$(cat $LW | fzf --multi --exact -i)"'';
dl = "download -u jawz -i";
};
initExtra = ''
@@ -34,19 +30,14 @@
install = true;
service = false;
name = "download";
package =
with pkgs.python3Packages;
package = with pkgs.python3Packages;
(buildPythonApplication rec {
pname = "download";
version = "2.5";
src = ../../scripts/download/.;
doCheck = false;
buildInputs = [ setuptools ];
propagatedBuildInputs = [
pyyaml
types-pyyaml
yt-dlp
];
propagatedBuildInputs = [ pyyaml types-pyyaml yt-dlp ];
});
};
};

View File

@@ -1,18 +1,11 @@
{
config,
lib,
pkgs,
...
}:
{
{ config, lib, pkgs, ... }: {
imports = [ ./base.nix ];
config.my.scripts.find-dup-episodes = {
enable = true;
install = true;
service = false;
name = "find-dup-episodes";
package = pkgs.writeScriptBin "find-dup-episodes" (
builtins.readFile ../../scripts/find-dup-episodes.sh
);
package = pkgs.writeScriptBin "find-dup-episodes"
(builtins.readFile ../../scripts/find-dup-episodes.sh);
};
}

View File

@@ -1,10 +1,4 @@
{
config,
lib,
pkgs,
...
}:
{
{ config, lib, pkgs, ... }: {
imports = [ ./base.nix ];
config.my.scripts.manage-library = {
enable = true;
@@ -13,6 +7,7 @@
name = "manage-library";
timer = "00:30";
description = "scans the library directory and sorts files";
package = pkgs.writeScriptBin "manage-library" (builtins.readFile ../../scripts/manage-library.sh);
package = pkgs.writeScriptBin "manage-library"
(builtins.readFile ../../scripts/manage-library.sh);
};
}

View File

@@ -1,10 +1,4 @@
{
config,
lib,
pkgs,
...
}:
{
{ config, lib, pkgs, ... }: {
imports = [ ./base.nix ];
config.my.scripts.nextcloud-cronjob = {
enable = true;
@@ -13,8 +7,7 @@
timer = "*:0/10";
name = "nextcloud-cronjob";
description = "runs tasks for nextcloud";
package = pkgs.writeScriptBin "nextcloud-cronjob" (
builtins.readFile ../../scripts/nextcloud-cronjob.sh
);
package = pkgs.writeScriptBin "nextcloud-cronjob"
(builtins.readFile ../../scripts/nextcloud-cronjob.sh);
};
}

View File

@@ -1,16 +1,11 @@
{
config,
lib,
pkgs,
...
}:
{
{ config, lib, pkgs, ... }: {
imports = [ ./base.nix ];
config.my.scripts.run = {
enable = true;
install = true;
service = false;
name = "run";
package = pkgs.writeScriptBin "run" (builtins.readFile ../../scripts/run.sh);
package =
pkgs.writeScriptBin "run" (builtins.readFile ../../scripts/run.sh);
};
}

View File

@@ -1,10 +1,4 @@
{
config,
lib,
pkgs,
...
}:
{
{ config, lib, pkgs, ... }: {
imports = [ ./base.nix ];
config.my.scripts.sub-sync = {
enable = true;
@@ -13,6 +7,7 @@
name = "sub-sync";
timer = "22:00";
description = "Syncronixes subtitles downloaded and modified the last day";
package = pkgs.writeScriptBin "sub-sync" (builtins.readFile ../../scripts/sub-sync.sh);
package = pkgs.writeScriptBin "sub-sync"
(builtins.readFile ../../scripts/sub-sync.sh);
};
}

View File

@@ -1,10 +1,4 @@
{
config,
lib,
pkgs,
...
}:
{
{ config, lib, pkgs, ... }: {
imports = [ ./base.nix ];
config.my.scripts.update-dns = {
enable = true;
@@ -13,6 +7,7 @@
name = "update-dns";
timer = "*:0/30";
description = "Updates the IP of all my domains";
package = pkgs.writeScriptBin "update-dns" (builtins.readFile ../../scripts/update-dns.sh);
package = pkgs.writeScriptBin "update-dns"
(builtins.readFile ../../scripts/update-dns.sh);
};
}