This commit is contained in:
shibazaki 2025-03-16 09:25:41 +01:00
parent 4d31310934
commit a54ef35344
4 changed files with 34 additions and 2 deletions

View File

@ -5,5 +5,6 @@
}: {
environment.systemPackages = with pkgs; [
gcc
(callPackage ./zen.nix)
];
}

31
nixos/system/zen.nix Normal file
View File

@ -0,0 +1,31 @@
{
appimageTools,
fetchurl,
...
}: let
pname = "zen";
version = "latest";
src = fetchurl {
url = "https://github.com/zen-browser/desktop/releases/latest/download/zen-x86_64.AppImage";
sha256 = "sha256-1s5T9adpo55cLk+ECaiYtZCEQtuAkmr7/4IuxRfsL4U=";
};
appimageContents = appimageTools.extract {
inherit pname version src;
};
in
appimageTools.wrapType2 {
inherit pname version src;
extraInstallCommands = ''
# Install .desktop file
install -m 444 -D ${appimageContents}/zen.desktop $out/share/applications/${pname}.desktop
# Install icon
install -m 444 -D ${appimageContents}/zen.png $out/share/icons/hicolor/128x128/apps/${pname}.png
'';
meta = {
platforms = ["x86_64-linux"];
};
}

View File

@ -19,7 +19,7 @@
./../../nixos/system/stylix.nix
./../../nixos/system/system-settings.nix
./../../nixos/system/neovim.nix
./../../nixos/system/libgcc.nix
./../../nixos/system/system-packages.nix.nix
./../../nixos/system/steam.nix
];

View File

@ -20,7 +20,7 @@
./../../nixos/system/system-settings.nix
./../../nixos/system/asus.nix
./../../nixos/system/neovim.nix
./../../nixos/system/libgcc.nix
./../../nixos/system/system-packages.nix.nix
./../../nixos/system/steam.nix
];