removed test open-mateo scripts
This commit is contained in:
@@ -3,22 +3,24 @@ let
|
||||
VERSION = "22.11";
|
||||
# HOME-MANAGER = builtins.fetchTarball
|
||||
# "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||
UNSTABLE_TARBALL =
|
||||
builtins.fetchTarball "https://github.com/nixos/nixpkgs/tarball/master";
|
||||
unstable = import UNSTABLE_TARBALL { config = config.nixpkgs.config; };
|
||||
nextcloud_scrapsync = pkgs.writeScriptBin "nextcloud_scrapsync"
|
||||
(builtins.readFile ./scripts/nextcloud_scrapsync.sh);
|
||||
mateo-current = pkgs.writeScriptBin "mateo-current"
|
||||
(builtins.readFile ./scripts/current.sh);
|
||||
mateo-forecast = pkgs.writeScriptBin "mateo-forecast"
|
||||
(builtins.readFile ./scripts/forecast.sh);
|
||||
manage_library = pkgs.writeScriptBin "manage_library"
|
||||
(builtins.readFile ./scripts/manage_library.fish);
|
||||
ffmpeg4discord = pkgs.writeScriptBin "ffmpeg4discord"
|
||||
(builtins.readFile ./scripts/ffmpeg4discord.py);
|
||||
in { # Remember to close this bracket at the end of the document
|
||||
UNSTABLE_TARBALL = builtins.fetchTarball
|
||||
https://github.com/nixos/nixpkgs/tarball/master;
|
||||
unstable = import UNSTABLE_TARBALL {
|
||||
config = config.nixpkgs.config;
|
||||
};
|
||||
nextcloud_scrapsync = pkgs.writeScriptBin
|
||||
"nextcloud_scrapsync" (builtins.readFile ./scripts/nextcloud_scrapsync.sh);
|
||||
manage_library = pkgs.writeScriptBin
|
||||
"manage_library" (builtins.readFile ./scripts/manage_library.fish);
|
||||
ffmpeg4discord = pkgs.writeScriptBin
|
||||
"ffmpeg4discord" (builtins.readFile ./scripts/ffmpeg4discord.py);
|
||||
in
|
||||
{ # Remember to close this bracket at the end of the document
|
||||
|
||||
imports = [ ./hardware-configuration.nix <home-manager/nixos> ];
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
<home-manager/nixos>
|
||||
];
|
||||
|
||||
networking.hostName = "workstation";
|
||||
|
||||
@@ -29,7 +31,9 @@ in { # Remember to close this bracket at the end of the document
|
||||
|
||||
i18n = {
|
||||
defaultLocale = "en_CA.UTF-8";
|
||||
extraLocaleSettings = { LC_MONETARY = "es_MX.UTF-8"; };
|
||||
extraLocaleSettings = {
|
||||
LC_MONETARY = "es_MX.UTF-8";
|
||||
};
|
||||
};
|
||||
console = {
|
||||
font = "Lat2-Terminus16";
|
||||
@@ -58,7 +62,8 @@ in { # Remember to close this bracket at the end of the document
|
||||
gnome-connections
|
||||
# gnome-shell-extensions
|
||||
baobab
|
||||
]) ++ (with pkgs.gnome; [
|
||||
])
|
||||
++ (with pkgs.gnome; [
|
||||
# totem
|
||||
gedit
|
||||
gnome-music
|
||||
@@ -93,7 +98,9 @@ in { # Remember to close this bracket at the end of the document
|
||||
# noPass = true;
|
||||
# }];
|
||||
|
||||
nixpkgs.config = { allowUnfree = true; };
|
||||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
|
||||
users.users.jawz = {
|
||||
isNormalUser = true;
|
||||
@@ -101,9 +108,7 @@ in { # Remember to close this bracket at the end of the document
|
||||
initialPassword = "password";
|
||||
shell = pkgs.fish;
|
||||
openssh = {
|
||||
authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB5GaQM4N+yGAByibOFQOBVMV/6TjOfaGIP+NunMiK76 gpodeacerocdreyes@100CDREYES"
|
||||
];
|
||||
authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB5GaQM4N+yGAByibOFQOBVMV/6TjOfaGIP+NunMiK76 gpodeacero\cdreyes@100CDREYES" ];
|
||||
};
|
||||
packages = (with pkgs; [
|
||||
|
||||
@@ -186,13 +191,11 @@ in { # Remember to close this bracket at the end of the document
|
||||
torrenttools # create torrent files from the terminal!
|
||||
lm_sensors # for extension, displays cpu temp
|
||||
|
||||
|
||||
# My own scripts
|
||||
nextcloud_scrapsync
|
||||
ffmpeg4discord
|
||||
manage_library
|
||||
mateo-current
|
||||
mateo-forecast
|
||||
jq
|
||||
|
||||
# required by doom emacs, but still are rather useful.
|
||||
fd # modern find, faster searches
|
||||
@@ -249,17 +252,12 @@ in { # Remember to close this bracket at the end of the document
|
||||
|
||||
# Fonts
|
||||
(nerdfonts.override {
|
||||
fonts = [
|
||||
"Agave"
|
||||
"CascadiaCode"
|
||||
"SourceCodePro"
|
||||
"Ubuntu"
|
||||
"FiraCode"
|
||||
"Iosevka"
|
||||
];
|
||||
fonts = [ "Agave" "CascadiaCode" "SourceCodePro" "Ubuntu" "FiraCode" "Iosevka" ];
|
||||
})
|
||||
symbola
|
||||
(papirus-icon-theme.override { color = "adwaita"; })
|
||||
(papirus-icon-theme.override {
|
||||
color = "adwaita";
|
||||
})
|
||||
|
||||
]) ++ (with pkgs.python310Packages; [
|
||||
black # Python code formatter
|
||||
@@ -303,8 +301,7 @@ in { # Remember to close this bracket at the end of the document
|
||||
markdownlint-cli
|
||||
prettier
|
||||
pnpm
|
||||
]);
|
||||
}; # <--- end of package list
|
||||
]); }; # <--- end of package list
|
||||
|
||||
fonts.fontconfig.enable = true;
|
||||
|
||||
@@ -321,15 +318,12 @@ in { # Remember to close this bracket at the end of the document
|
||||
enable = true;
|
||||
# useBabelfish = true; This setting doens't work from inside home-manager
|
||||
shellAliases = {
|
||||
ls =
|
||||
"exa --icons --group-directories-first --no-permissions --no-user --no-time";
|
||||
ls = "exa --icons --group-directories-first --no-permissions --no-user --no-time";
|
||||
edit = "emacsclient -t";
|
||||
comic = "download -u jawz -i (cat $lc | fzf --multi --exact -i)";
|
||||
gallery = "download -u jawz -i (cat $lw | fzf --multi --exact -i)";
|
||||
open_gallery =
|
||||
"open (find /mnt/disk2/scrapping/JawZ/gallery-dl -type d | fzf)";
|
||||
unique_extensions =
|
||||
"find . -type f | string match -r '([^./]+)$' | sort -u";
|
||||
open_gallery = "open (find /mnt/disk2/scrapping/JawZ/gallery-dl -type d | fzf)";
|
||||
unique_extensions = "find . -type f | string match -r '([^.\/]+)\$' | sort -u";
|
||||
cp = "cp -i";
|
||||
mv = "mv -i";
|
||||
mkdir = "mkdir -p";
|
||||
@@ -352,7 +346,7 @@ in { # Remember to close this bracket at the end of the document
|
||||
interactiveShellInit = ''
|
||||
|
||||
function fish_greeting
|
||||
pokemon-colorscripts -r --no-title
|
||||
~/.local/bin/pokemon-colorscripts -r --no-title
|
||||
end
|
||||
# Lists
|
||||
set -l list_root ${config.home.homeDirectory}/.config/jawz/lists/jawz
|
||||
@@ -396,8 +390,7 @@ in { # Remember to close this bracket at the end of the document
|
||||
config = {
|
||||
# map-syntax = [ "*.jenkinsfile:Groovy" "*.props:Java Properties" ];
|
||||
pager = "less -FR";
|
||||
theme = "base16";
|
||||
};
|
||||
theme = "base16"; };
|
||||
};
|
||||
git = {
|
||||
enable = true;
|
||||
@@ -430,8 +423,7 @@ in { # Remember to close this bracket at the end of the document
|
||||
};
|
||||
configFile = {
|
||||
"wgetrc".source = ./dotfiles/wget/wgetrc;
|
||||
"configstore/update-notifier-npm-check.json".source =
|
||||
./dotfiles/npm/update-notifier-npm-check.json;
|
||||
"configstore/update-notifier-npm-check.json".source = ./dotfiles/npm/update-notifier-npm-check.json;
|
||||
"npm/npmrc".source = ./dotfiles/npm/npmrc;
|
||||
"gallery-dl/config.json".source = ./dotfiles/gallery-dl/config.json;
|
||||
"htop/htoprc".source = ./dotfiles/htop/htoprc;
|
||||
@@ -517,7 +509,9 @@ in { # Remember to close this bracket at the end of the document
|
||||
olderThan = 10;
|
||||
interval = "4:00";
|
||||
};
|
||||
parityFiles = [ "/mnt/parity/snapraid.parity" ];
|
||||
parityFiles = [
|
||||
"/mnt/parity/snapraid.parity"
|
||||
];
|
||||
extraConfig = ''
|
||||
autosave 50
|
||||
'';
|
||||
@@ -549,7 +543,9 @@ in { # Remember to close this bracket at the end of the document
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
geary = { enable = true; };
|
||||
geary = {
|
||||
enable = true;
|
||||
};
|
||||
steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
@@ -573,19 +569,25 @@ in { # Remember to close this bracket at the end of the document
|
||||
# };
|
||||
btrfs.autoScrub = {
|
||||
enable = true;
|
||||
fileSystems = [ "/" "/mnt/disk1" "/mnt/disk2" ];
|
||||
fileSystems = [
|
||||
"/"
|
||||
"/mnt/disk1"
|
||||
"/mnt/disk2"
|
||||
];
|
||||
};
|
||||
mediatomb.enable = true;
|
||||
# mediatomb.enable = true;
|
||||
openssh = {
|
||||
enable = true;
|
||||
ports = [ 25152 ];
|
||||
passwordAuthentication = false;
|
||||
kbdInteractiveAuthentication = false;
|
||||
startWhenNeeded = true;
|
||||
listenAddresses = [{
|
||||
listenAddresses = [
|
||||
{
|
||||
addr = "0.0.0.0";
|
||||
port = 25152;
|
||||
}];
|
||||
}
|
||||
];
|
||||
};
|
||||
# udev.packages = with pkgs; [ gnome.gnome-settings-daemon ];
|
||||
emacs = {
|
||||
@@ -606,43 +608,23 @@ in { # Remember to close this bracket at the end of the document
|
||||
environment = {
|
||||
FILE = "/home/jawz/Development/Docker/docker-compose.yml";
|
||||
};
|
||||
path = [ pkgs.docker-compose ];
|
||||
path = [
|
||||
pkgs.docker-compose
|
||||
];
|
||||
serviceConfig = {
|
||||
Restart = "on-failure";
|
||||
RestartSec = 30;
|
||||
ExecStart =
|
||||
"${pkgs.docker-compose}/bin/docker-compose -f \${FILE} up --remove-orphans";
|
||||
ExecStart = "${pkgs.docker-compose}/bin/docker-compose -f \${FILE} up --remove-orphans";
|
||||
ExecStop = "${pkgs.docker-compose}/bin/docker-compose -f \${FILE} down";
|
||||
};
|
||||
};
|
||||
"mateo-current" = {
|
||||
enable = true;
|
||||
restartIfChanged = true;
|
||||
description = "current weather";
|
||||
wantedBy = [ "default.target" ];
|
||||
path = [ pkgs.bash pkgs.jq pkgs.curl mateo-current ];
|
||||
serviceConfig = {
|
||||
Restart = "on-failure";
|
||||
WorkingDirectory = "/home/jawz/Development/Scripts/open-mateo";
|
||||
ExecStart = "${mateo-current}/bin/mateo-current";
|
||||
};
|
||||
};
|
||||
"mateo-forecast" = {
|
||||
enable = true;
|
||||
restartIfChanged = true;
|
||||
description = "forecast weather";
|
||||
wantedBy = [ "default.target" ];
|
||||
path = [ pkgs.bash pkgs.jq pkgs.curl mateo-forecast ];
|
||||
serviceConfig = {
|
||||
Restart = "on-failure";
|
||||
WorkingDirectory = "/home/jawz/Development/Scripts/open-mateo";
|
||||
ExecStart = "${mateo-forecast}/bin/mateo-forecast";
|
||||
};
|
||||
};
|
||||
"nextcloud_scrapsync" = {
|
||||
description = "Sync scrapped files with nextcloud";
|
||||
wantedBy = [ "default.target" ];
|
||||
path = [ pkgs.bash nextcloud_scrapsync ];
|
||||
path = [
|
||||
pkgs.bash
|
||||
nextcloud_scrapsync
|
||||
];
|
||||
serviceConfig = {
|
||||
RestartSec = 30;
|
||||
ExecStart = "${nextcloud_scrapsync}/bin/nextcloud_scrapsync";
|
||||
@@ -665,27 +647,6 @@ in { # Remember to close this bracket at the end of the document
|
||||
Persistent = true;
|
||||
};
|
||||
};
|
||||
"mateo-current" = {
|
||||
enable = true;
|
||||
description = "Sync scrapped files with nextcloud";
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnBootSec = "1m";
|
||||
OnUnitActiveSec = "1h";
|
||||
RandomizedDelaySec = 30;
|
||||
Persistent = true;
|
||||
};
|
||||
};
|
||||
"mateo-forecast" = {
|
||||
enable = true;
|
||||
description = "Sync scrapped files with nextcloud";
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnCalendar = [ "*-*-* 06:05:00" "*-*-* 18:05:00" ];
|
||||
RandomizedDelaySec = 30;
|
||||
Persistent = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
systemd.user.services = {
|
||||
"HentaiAtHome" = {
|
||||
@@ -693,7 +654,9 @@ in { # Remember to close this bracket at the end of the document
|
||||
restartIfChanged = true;
|
||||
description = "Run hentai@home server";
|
||||
wantedBy = [ "default.target" ];
|
||||
path = [ pkgs.HentaiAtHome ];
|
||||
path = [
|
||||
pkgs.HentaiAtHome
|
||||
];
|
||||
serviceConfig = {
|
||||
Restart = "on-failure";
|
||||
RestartSec = 30;
|
||||
@@ -706,7 +669,10 @@ in { # Remember to close this bracket at the end of the document
|
||||
restartIfChanged = true;
|
||||
description = "Run the manage library fish script";
|
||||
wantedBy = [ "default.target" ];
|
||||
path = [ pkgs.fish manage_library ];
|
||||
path = [
|
||||
pkgs.fish
|
||||
manage_library
|
||||
];
|
||||
serviceConfig = {
|
||||
Restart = "on-failure";
|
||||
RestartSec = 30;
|
||||
|
||||
@@ -50,10 +50,6 @@ let
|
||||
};
|
||||
nextcloud_scrapsync = pkgs.writeScriptBin
|
||||
"nextcloud_scrapsync" (builtins.readFile ./scripts/nextcloud_scrapsync.sh);
|
||||
mateo-current = pkgs.writeScriptBin
|
||||
"mateo-current" (builtins.readFile ./scripts/current.sh);
|
||||
mateo-forecast = pkgs.writeScriptBin
|
||||
"mateo-forecast" (builtins.readFile ./scripts/forecast.sh);
|
||||
manage_library = pkgs.writeScriptBin
|
||||
"manage_library" (builtins.readFile ./scripts/manage_library.fish);
|
||||
ffmpeg4discord = pkgs.writeScriptBin
|
||||
@@ -374,9 +370,6 @@ lm_sensors # for extension, displays cpu temp
|
||||
nextcloud_scrapsync
|
||||
ffmpeg4discord
|
||||
manage_library
|
||||
mateo-current
|
||||
mateo-forecast
|
||||
jq
|
||||
#+end_src
|
||||
|
||||
** DEVELOPMENT PACKAGES
|
||||
@@ -927,40 +920,6 @@ systemd.services = {
|
||||
ExecStop = "${pkgs.docker-compose}/bin/docker-compose -f \${FILE} down";
|
||||
};
|
||||
};
|
||||
"mateo-current" = {
|
||||
enable = true;
|
||||
restartIfChanged = true;
|
||||
description = "current weather";
|
||||
wantedBy = [ "default.target" ];
|
||||
path = [
|
||||
pkgs.bash
|
||||
pkgs.jq
|
||||
pkgs.curl
|
||||
mateo-current
|
||||
];
|
||||
serviceConfig = {
|
||||
Restart = "on-failure";
|
||||
WorkingDirectory="/home/jawz/Development/Scripts/open-mateo";
|
||||
ExecStart = "${mateo-current}/bin/mateo-current";
|
||||
};
|
||||
};
|
||||
"mateo-forecast" = {
|
||||
enable = true;
|
||||
restartIfChanged = true;
|
||||
description = "forecast weather";
|
||||
wantedBy = [ "default.target" ];
|
||||
path = [
|
||||
pkgs.bash
|
||||
pkgs.jq
|
||||
pkgs.curl
|
||||
mateo-forecast
|
||||
];
|
||||
serviceConfig = {
|
||||
Restart = "on-failure";
|
||||
WorkingDirectory="/home/jawz/Development/Scripts/open-mateo";
|
||||
ExecStart = "${mateo-forecast}/bin/mateo-forecast";
|
||||
};
|
||||
};
|
||||
"nextcloud_scrapsync" = {
|
||||
description = "Sync scrapped files with nextcloud";
|
||||
wantedBy = [ "default.target" ];
|
||||
@@ -990,30 +949,6 @@ systemd.timers = {
|
||||
Persistent = true;
|
||||
};
|
||||
};
|
||||
"mateo-current" = {
|
||||
enable = true;
|
||||
description = "Sync scrapped files with nextcloud";
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnBootSec = "1m";
|
||||
OnUnitActiveSec = "1h";
|
||||
RandomizedDelaySec = 30;
|
||||
Persistent = true;
|
||||
};
|
||||
};
|
||||
"mateo-forecast" = {
|
||||
enable = true;
|
||||
description = "Sync scrapped files with nextcloud";
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnCalendar= [
|
||||
"*-*-* 06:05:00"
|
||||
"*-*-* 18:05:00"
|
||||
];
|
||||
RandomizedDelaySec = 30;
|
||||
Persistent = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
systemd.user.services = {
|
||||
"HentaiAtHome" = {
|
||||
|
||||
Reference in New Issue
Block a user