zen
This commit is contained in:
parent
4d31310934
commit
a54ef35344
@ -5,5 +5,6 @@
|
|||||||
}: {
|
}: {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
gcc
|
gcc
|
||||||
|
(callPackage ./zen.nix)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
31
nixos/system/zen.nix
Normal file
31
nixos/system/zen.nix
Normal 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"];
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -19,7 +19,7 @@
|
|||||||
./../../nixos/system/stylix.nix
|
./../../nixos/system/stylix.nix
|
||||||
./../../nixos/system/system-settings.nix
|
./../../nixos/system/system-settings.nix
|
||||||
./../../nixos/system/neovim.nix
|
./../../nixos/system/neovim.nix
|
||||||
./../../nixos/system/libgcc.nix
|
./../../nixos/system/system-packages.nix.nix
|
||||||
./../../nixos/system/steam.nix
|
./../../nixos/system/steam.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
./../../nixos/system/system-settings.nix
|
./../../nixos/system/system-settings.nix
|
||||||
./../../nixos/system/asus.nix
|
./../../nixos/system/asus.nix
|
||||||
./../../nixos/system/neovim.nix
|
./../../nixos/system/neovim.nix
|
||||||
./../../nixos/system/libgcc.nix
|
./../../nixos/system/system-packages.nix.nix
|
||||||
./../../nixos/system/steam.nix
|
./../../nixos/system/steam.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user