2024-05-28 14:38:22 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}:
|
2023-08-21 02:24:55 +02:00
|
|
|
|
|
|
|
with lib;
|
2024-02-18 23:04:50 +01:00
|
|
|
let
|
2024-12-19 01:26:25 +01:00
|
|
|
nixGL = config.lib.nixGL.wrap;
|
2024-05-28 14:38:22 +02:00
|
|
|
electronFlags = "--enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime --disable-gpu-shader-disk-cache -n";
|
2024-04-28 03:53:21 +02:00
|
|
|
in
|
|
|
|
{
|
2023-08-21 02:24:55 +02:00
|
|
|
config = {
|
2023-09-11 00:37:23 +02:00
|
|
|
nixpkgs.overlays = [
|
2024-02-27 02:54:02 +01:00
|
|
|
(_: prev: {
|
2023-09-11 00:37:23 +02:00
|
|
|
quickemu = prev.quickemu.overrideAttrs (old: {
|
2024-02-27 02:54:02 +01:00
|
|
|
patches = (old.patches or [ ]) ++ [ ./../patches/quickemu.patch ];
|
2023-09-11 00:37:23 +02:00
|
|
|
});
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2024-05-28 14:38:22 +02:00
|
|
|
home.packages =
|
|
|
|
with pkgs;
|
2024-02-27 02:54:02 +01:00
|
|
|
[
|
|
|
|
up
|
|
|
|
htop
|
|
|
|
rustc
|
|
|
|
cargo
|
2024-05-28 14:38:22 +02:00
|
|
|
nixfmt-rfc-style
|
2024-02-27 02:54:02 +01:00
|
|
|
nodejs
|
|
|
|
bun
|
|
|
|
deno
|
|
|
|
devbox
|
|
|
|
tldr
|
|
|
|
flutter
|
|
|
|
nurl
|
|
|
|
hcloud
|
|
|
|
tea
|
|
|
|
dgraph
|
|
|
|
nix-init
|
|
|
|
nodePackages.nodemon
|
|
|
|
pocketbase
|
|
|
|
hub
|
|
|
|
httpie
|
|
|
|
manix
|
2024-05-28 14:38:22 +02:00
|
|
|
(pkgs.writeShellScriptBin "ssh-fix-permissions" (
|
|
|
|
builtins.readFile ./../scripts/ssh-fix-permissions.sh
|
|
|
|
))
|
|
|
|
(pkgs.writeShellScriptBin "yt-dlp-audio" (builtins.readFile ./../scripts/yt-dlp-audio.sh))
|
|
|
|
(pkgs.writeShellScriptBin "nix-shell-init" (builtins.readFile ./../scripts/nix-shell-init.sh))
|
2024-02-27 02:54:02 +01:00
|
|
|
(pkgs.writeShellScriptBin "http-server" ''
|
2024-06-05 01:00:27 +02:00
|
|
|
${pkgs.caddy}/bin/caddy file-server --listen :2345z
|
2024-02-27 02:54:02 +01:00
|
|
|
'')
|
|
|
|
(pkgs.writeShellScriptBin "nix-build-default" ''
|
|
|
|
nix-build -E 'with import <nixpkgs> { }; callPackage ./default.nix { }'
|
|
|
|
'')
|
2024-02-29 19:14:22 +01:00
|
|
|
(callPackage ./../pkgs/toggl-time-grouper/package.nix { inherit python3Packages; })
|
2024-03-19 15:38:04 +01:00
|
|
|
(callPackage ./../pkgs/extract.nix { inherit pkgs; })
|
2024-10-12 19:06:31 +02:00
|
|
|
(pkgs.writeShellScriptBin "kitty-term-fix" ''
|
|
|
|
infocmp -a xterm-kitty | ssh $1 tic -x -o \~/.terminfo /dev/stdin
|
|
|
|
'')
|
2024-02-27 02:54:02 +01:00
|
|
|
nixpkgs-fmt
|
|
|
|
ddev
|
|
|
|
act
|
|
|
|
mkcert
|
2024-10-18 21:13:05 +02:00
|
|
|
# pulumi
|
2024-02-27 02:54:02 +01:00
|
|
|
kubectl
|
|
|
|
pulumiPackages.pulumi-language-nodejs
|
|
|
|
ncdu
|
2024-03-24 01:50:09 +01:00
|
|
|
devenv
|
2024-02-27 02:54:02 +01:00
|
|
|
inputs.nixpkgs-update.packages.x86_64-linux.nixpkgs-update
|
|
|
|
inputs.dagger.packages.x86_64-linux.dagger
|
|
|
|
unzip
|
|
|
|
nil
|
|
|
|
nixd
|
|
|
|
unrar
|
2024-03-05 23:42:08 +01:00
|
|
|
inputs.w17.packages.x86_64-linux.default
|
2024-03-12 00:13:50 +01:00
|
|
|
aichat
|
2024-12-01 22:31:05 +01:00
|
|
|
nerd-fonts.jetbrains-mono
|
|
|
|
nerd-fonts.fira-code
|
|
|
|
nerd-fonts.fira-mono
|
2024-04-19 02:18:25 +02:00
|
|
|
nix-output-monitor
|
|
|
|
nodePackages.pnpm
|
|
|
|
npm-check-updates
|
2024-11-23 23:26:29 +01:00
|
|
|
|
|
|
|
# FPGA stuff
|
|
|
|
yosys
|
|
|
|
nextpnr
|
|
|
|
icestorm
|
|
|
|
icebreaker
|
2024-05-28 14:38:22 +02:00
|
|
|
]
|
|
|
|
++ (
|
|
|
|
if (!config.machine.isGeneric) then
|
|
|
|
[
|
|
|
|
toolbox
|
|
|
|
distrobox
|
|
|
|
]
|
|
|
|
else
|
|
|
|
[ ]
|
|
|
|
)
|
|
|
|
++ (
|
|
|
|
if (config.machine.isGraphical) then
|
|
|
|
[
|
|
|
|
(nixGL insomnia)
|
|
|
|
(nixGL comma)
|
2024-07-22 20:23:58 +02:00
|
|
|
# (nixGL processing)
|
2024-06-21 15:47:12 +02:00
|
|
|
(nixGL scrcpy)
|
2024-05-28 14:38:22 +02:00
|
|
|
]
|
|
|
|
else
|
2024-05-03 00:17:20 +02:00
|
|
|
[ ]
|
2024-05-28 14:38:22 +02:00
|
|
|
)
|
|
|
|
++ (
|
|
|
|
if (config.machine.isGraphical && !config.machine.isGeneric) then
|
|
|
|
[
|
|
|
|
jetbrains.webstorm
|
|
|
|
jetbrains.phpstorm
|
|
|
|
jetbrains.rust-rover
|
|
|
|
jetbrains.goland
|
|
|
|
element-desktop
|
|
|
|
ludusavi
|
|
|
|
dbeaver
|
|
|
|
onlyoffice-bin
|
|
|
|
spotify
|
|
|
|
vesktop
|
|
|
|
(lutris.override {
|
|
|
|
extraLibraries = _: [ gnome3.adwaita-icon-theme ];
|
|
|
|
extraPkgs = _: [
|
|
|
|
wineWowPackages.full
|
|
|
|
winetricks
|
|
|
|
gnome3.adwaita-icon-theme
|
|
|
|
];
|
|
|
|
})
|
|
|
|
bottles
|
|
|
|
protontricks
|
|
|
|
heroic
|
|
|
|
(vscode.override { commandLineArgs = electronFlags; })
|
|
|
|
quickemu
|
|
|
|
quickgui
|
|
|
|
trilium-desktop
|
|
|
|
anki
|
|
|
|
# inputs.muse-sounds-manager.packages.x86_64-linux.muse-sounds-manager
|
|
|
|
jetbrains-toolbox
|
|
|
|
mumble
|
|
|
|
prusa-slicer
|
|
|
|
trayscale
|
|
|
|
gnome.gnome-disk-utility
|
|
|
|
inkscape
|
|
|
|
musescore
|
|
|
|
obsidian
|
|
|
|
syncthingtray
|
|
|
|
reaper
|
|
|
|
yabridge
|
|
|
|
inputs.suyu.packages.x86_64-linux.suyu
|
|
|
|
inputs.nix-alien.packages.x86_64-linux.nix-alien
|
|
|
|
kdePackages.kdenlive
|
|
|
|
audacity
|
|
|
|
]
|
|
|
|
else
|
2024-04-28 03:53:21 +02:00
|
|
|
[ ]
|
2024-05-28 14:38:22 +02:00
|
|
|
)
|
|
|
|
++ (
|
|
|
|
if config.machine.isGnome then
|
|
|
|
[
|
|
|
|
gnomeExtensions.blur-my-shell
|
|
|
|
gnomeExtensions.dash-to-panel
|
|
|
|
gnomeExtensions.user-themes
|
|
|
|
gnomeExtensions.vitals
|
|
|
|
gnomeExtensions.custom-accent-colors
|
|
|
|
]
|
|
|
|
else
|
2024-04-28 03:53:21 +02:00
|
|
|
[ ]
|
2024-05-28 14:38:22 +02:00
|
|
|
);
|
2023-08-21 02:24:55 +02:00
|
|
|
};
|
|
|
|
}
|