matt1432
a4499f3cd4
All checks were successful
Discord / discord commits (push) Has been skipped
Flake Inputs: • Updated input 'discord-overlay': 'github:matt1432/discord-nightly-overlay/1e367d5' (2024-08-05) → 'github:matt1432/discord-nightly-overlay/b9f8aa6' (2024-08-06) • Updated input 'gtk-theme-src': 'github:dracula/gtk/100310f' (2024-07-29) → 'github:dracula/gtk/f339612' (2024-08-06) • Updated input 'home-manager': 'github:nix-community/home-manager/afc892d' (2024-08-02) → 'github:nix-community/home-manager/a6c7439' (2024-08-06) • Updated input 'hyprland': 'git+https://github.com/hyprwm/Hyprland?ref=refs/heads/main&rev=2b52057&submodules=1' (2024-08-04) → 'git+https://github.com/hyprwm/Hyprland?ref=refs/heads/main&rev=b0a70f6&submodules=1' (2024-08-06) • Updated input 'jovian': 'github:Jovian-Experiments/Jovian-NixOS/bcfe9dc' (2024-08-03) → 'github:Jovian-Experiments/Jovian-NixOS/99099d7' (2024-08-06) • Updated input 'nixd': 'github:nix-community/nixd/d938026' (2024-08-02) → 'github:nix-community/nixd/af1255e' (2024-08-06) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/d049530' (2024-08-02) → 'github:NixOS/nixpkgs/cb9a96f' (2024-08-04) • Updated input 'nixpkgs-wayland': 'github:nix-community/nixpkgs-wayland/c2ccf4e' (2024-08-05) → 'github:nix-community/nixpkgs-wayland/2c512b8' (2024-08-06) • Updated input 'pcsd': 'github:matt1432/nixos-pcsd/bd2cfa7' (2024-08-02) → 'github:matt1432/nixos-pcsd/f7870c6' (2024-08-06) • Updated input 'sops-nix': 'github:Mic92/sops-nix/eb34eb5' (2024-07-27) → 'github:Mic92/sops-nix/8ae4779' (2024-08-05) • Updated input 'ts-for-gir-src': 'github:gjsify/ts-for-gir/70838c7' (2024-07-26) → 'github:gjsify/ts-for-gir/0141c0e' (2024-08-05) Docker Images: • rssbridge/rss-bridge latest: sha256:e13b87cd36a828237d9e284e66ca6fb55e1d9819d6c925e35a689e6b529aeb39 → sha256:5b080be160ac5e5c5a0d450f9e431a472b2ee9e95353d905628ed804efd96783 • ghcr.io/linuxserver/bazarr latest: sha256:e70de8a714ac57395d45052392001ec433b8f48aa1c204f13dae312cbcbe43af → sha256:4222fa316c51c2d0257384e5562541059698c220abbb00170eb93c3ddfa52d18 • ghcr.io/linuxserver/calibre-web latest: sha256:14c3eafe5aec2344581e27991adc6545c9928f54020b50affe1678b8b5f22021 → sha256:ff7e870dec503f5bd02c5a528ba1f96617900cb4853ef05176bfbc278b5d263d • craumix/jmusicbot latest: sha256:0afa4efbd43a718fba9108cdab8865f80bb1690f690920e732303d081507868d → sha256:ba0d7e7e4b1dba86981687e3c8ada6b7a7170c6b4884c12a16c6ee046e2df763
70 lines
1.5 KiB
TypeScript
70 lines
1.5 KiB
TypeScript
import { spawnSync } from 'node:child_process';
|
|
|
|
import { parseArgs } from './lib.ts';
|
|
import { updateFirefoxAddons } from '././firefox.ts';
|
|
import { updateDocker, updateFlakeInputs, updateVuetorrent } from './misc.ts';
|
|
|
|
|
|
/* Constants */
|
|
const FLAKE = process.env.FLAKE;
|
|
|
|
if (!FLAKE) {
|
|
console.error('Env var FLAKE not found');
|
|
process.exit(1);
|
|
}
|
|
|
|
const args = parseArgs();
|
|
|
|
if (args['d'] || args['docker']) {
|
|
console.log(updateDocker());
|
|
}
|
|
|
|
if (args['i'] || args['inputs']) {
|
|
console.log(updateFlakeInputs());
|
|
}
|
|
|
|
if (args['f'] || args['firefox']) {
|
|
console.log(updateFirefoxAddons());
|
|
}
|
|
|
|
if (args['v'] || args['vuetorrent']) {
|
|
console.log(updateVuetorrent());
|
|
}
|
|
|
|
if (args['a'] || args['all']) {
|
|
// Update this first because of nix run cmd
|
|
const firefoxOutput = updateFirefoxAddons();
|
|
|
|
console.log(firefoxOutput);
|
|
|
|
|
|
const flakeOutput = updateFlakeInputs();
|
|
|
|
console.log(flakeOutput);
|
|
|
|
|
|
const dockerOutput = updateDocker();
|
|
|
|
console.log(dockerOutput);
|
|
|
|
|
|
const vuetorrentOutput = updateVuetorrent();
|
|
|
|
console.log(vuetorrentOutput);
|
|
|
|
|
|
spawnSync('nix-fast-build', ['-f', `${FLAKE}#nixFastChecks`], {
|
|
shell: true,
|
|
stdio: [process.stdin, process.stdout, process.stderr],
|
|
});
|
|
|
|
console.log([
|
|
'chore: update flake.lock',
|
|
`Flake Inputs:\n${flakeOutput}`,
|
|
`Docker Images:\n${dockerOutput}`,
|
|
`Firefox Addons:\n${firefoxOutput}`,
|
|
`Misc Sources:\n${vuetorrentOutput}`,
|
|
].join('\n\n'));
|
|
}
|
|
|
|
spawnSync('alejandra', ['-q', FLAKE], { shell: true });
|