2024-12-22 00:27:24 -05:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
self,
|
|
|
|
...
|
|
|
|
}: let
|
2024-12-16 15:51:41 -05:00
|
|
|
inherit (builtins) attrValues;
|
|
|
|
|
2024-12-22 00:27:24 -05:00
|
|
|
langsShells = import ./langs.nix {inherit pkgs self;};
|
|
|
|
|
2024-12-16 15:51:41 -05:00
|
|
|
bumpNpmDeps = pkgs.writeShellApplication {
|
|
|
|
name = "bumpNpmDeps";
|
|
|
|
runtimeInputs = attrValues {
|
|
|
|
inherit
|
|
|
|
(pkgs)
|
|
|
|
prefetch-npm-deps
|
|
|
|
nodejs_latest
|
|
|
|
;
|
|
|
|
};
|
|
|
|
text = ''
|
|
|
|
# this command might fail but still updates the main lockfile
|
|
|
|
npm i --package-lock-only || true
|
|
|
|
prefetch-npm-deps ./package-lock.json
|
|
|
|
'';
|
|
|
|
};
|
2024-12-22 00:27:24 -05:00
|
|
|
in
|
|
|
|
{
|
|
|
|
default = pkgs.mkShell {
|
|
|
|
packages = [
|
|
|
|
(pkgs.writeShellApplication {
|
|
|
|
name = "mkIso";
|
2024-12-16 15:51:41 -05:00
|
|
|
|
2024-12-22 00:27:24 -05:00
|
|
|
runtimeInputs = attrValues {
|
|
|
|
inherit
|
|
|
|
(pkgs)
|
|
|
|
nix-output-monitor
|
|
|
|
;
|
|
|
|
};
|
2024-12-16 15:51:41 -05:00
|
|
|
|
2024-12-22 00:27:24 -05:00
|
|
|
text = ''
|
|
|
|
isoConfig="nixosConfigurations.live-image.config.system.build.isoImage"
|
|
|
|
nom build "$FLAKE#$isoConfig"
|
|
|
|
'';
|
|
|
|
})
|
2024-12-16 15:51:41 -05:00
|
|
|
|
2024-12-22 00:27:24 -05:00
|
|
|
(pkgs.writeShellApplication {
|
|
|
|
name = "fixUidChange";
|
2024-12-16 15:51:41 -05:00
|
|
|
|
2024-12-22 00:27:24 -05:00
|
|
|
runtimeInputs = attrValues {
|
|
|
|
inherit
|
|
|
|
(pkgs)
|
|
|
|
findutils
|
|
|
|
gnused
|
|
|
|
;
|
|
|
|
};
|
2024-12-16 15:51:41 -05:00
|
|
|
|
2024-12-22 00:27:24 -05:00
|
|
|
text = ''
|
|
|
|
GROUP="$1"
|
|
|
|
OLD_GID="$2"
|
|
|
|
NEW_GID="$3"
|
2024-12-16 15:51:41 -05:00
|
|
|
|
2024-12-22 00:27:24 -05:00
|
|
|
# Remove generated group entry
|
|
|
|
sudo sed -i -e "/^$GROUP:/d" /etc/group
|
2024-12-16 15:51:41 -05:00
|
|
|
|
2024-12-22 00:27:24 -05:00
|
|
|
# Change GID on existing files
|
|
|
|
sudo find / -gid "$OLD_GID" -exec chgrp "$NEW_GID" {} +
|
|
|
|
'';
|
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
2024-12-16 15:51:41 -05:00
|
|
|
|
2024-12-22 00:27:24 -05:00
|
|
|
netdaemon = pkgs.mkShell {
|
|
|
|
packages = attrValues {
|
|
|
|
inherit
|
|
|
|
(pkgs.dotnetCorePackages)
|
|
|
|
sdk_9_0
|
|
|
|
;
|
|
|
|
};
|
2024-12-16 15:51:41 -05:00
|
|
|
};
|
|
|
|
|
2024-12-22 00:27:24 -05:00
|
|
|
node = pkgs.mkShell {
|
|
|
|
packages = attrValues {
|
|
|
|
inherit
|
|
|
|
(pkgs)
|
|
|
|
nodejs_latest
|
|
|
|
typescript
|
|
|
|
;
|
2024-12-16 15:51:41 -05:00
|
|
|
|
2024-12-22 00:27:24 -05:00
|
|
|
inherit
|
|
|
|
bumpNpmDeps
|
|
|
|
;
|
|
|
|
};
|
2024-12-16 15:51:41 -05:00
|
|
|
};
|
|
|
|
|
2024-12-22 00:27:24 -05:00
|
|
|
subtitles-dev = pkgs.mkShell {
|
|
|
|
packages = attrValues {
|
|
|
|
inherit
|
|
|
|
(pkgs)
|
|
|
|
nodejs_latest
|
|
|
|
typescript
|
|
|
|
ffmpeg-full
|
|
|
|
;
|
2024-12-16 15:51:41 -05:00
|
|
|
|
2024-12-22 00:27:24 -05:00
|
|
|
inherit
|
|
|
|
(pkgs.nodePackages)
|
|
|
|
ts-node
|
|
|
|
;
|
2024-12-16 15:51:41 -05:00
|
|
|
|
2024-12-22 00:27:24 -05:00
|
|
|
inherit
|
|
|
|
bumpNpmDeps
|
|
|
|
;
|
|
|
|
};
|
2024-12-16 15:51:41 -05:00
|
|
|
};
|
2024-12-22 00:27:24 -05:00
|
|
|
}
|
|
|
|
// langsShells
|