diff --git a/nixos/system/libgcc.nix b/nixos/system/system-packages.nix similarity index 75% rename from nixos/system/libgcc.nix rename to nixos/system/system-packages.nix index 0040567..56322fa 100644 --- a/nixos/system/libgcc.nix +++ b/nixos/system/system-packages.nix @@ -5,5 +5,6 @@ }: { environment.systemPackages = with pkgs; [ gcc + (callPackage ./zen.nix) ]; } diff --git a/nixos/system/zen.nix b/nixos/system/zen.nix new file mode 100644 index 0000000..d14879c --- /dev/null +++ b/nixos/system/zen.nix @@ -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"]; + }; + } diff --git a/users/shibazaki/configuration.nix b/users/shibazaki/configuration.nix index 6b1a63f..b5db4fc 100644 --- a/users/shibazaki/configuration.nix +++ b/users/shibazaki/configuration.nix @@ -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 ]; diff --git a/users/twelve/configuration.nix b/users/twelve/configuration.nix index 2f8b356..4084798 100644 --- a/users/twelve/configuration.nix +++ b/users/twelve/configuration.nix @@ -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 ];