some changes

This commit is contained in:
tx0 2025-03-07 17:55:45 +05:00
parent 64b831e6ea
commit 3bf888f7c8
5 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,55 @@
{
lib,
appimageTools,
fetchurl,
makeDesktopItem,
}: let
pname = "ubports-installer";
icon = ./ubports-mascot.jpg;
desktopItems = [
(makeDesktopItem {
name = pname;
inherit icon;
desktopName = "Ubuntu Touch Installer";
genericName = "GUI for installing Ubuntu Touch";
exec = "@out@/bin/ubports-installer";
comment = "GUI for installing Ubuntu Touch";
categories = ["System"];
startupNotify = false;
keywords = ["system" "os" "network" "ubuntu" "touch" "mobile"];
})
];
in
appimageTools.wrapType2 rec {
inherit pname;
version = "0.10.0";
src = fetchurl {
url = "https://github.com/ubports/ubports-installer/releases/download/${version}/ubports-installer_${version}_linux_x86_64.AppImage";
hash = "sha256-oUQ4AaRiUMeklyI4xzH+krXyedqpLiA9obo5uO8JJak=";
};
extraInstallCommands =
''
mv $out/bin/${pname}-${version} $out/bin/${pname}
''
+ lib.concatMapStringsSep "\n "
(e: ''
install -Dm444 -t $out/share/applications ${e}/share/applications/*.desktop
'')
desktopItems
+ ''
install -Dm444 ${icon} $out/share/icons/apps/${pname}.jpg;
for f in $out/share/applications/*.desktop; do
substituteInPlace $f --subst-var out
done
'';
meta = with lib; {
description = "Ubuntu Touch installer";
license = licenses.free;
};
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -0,0 +1,5 @@
{...}: {
services.udev.extraRules = ''
KERNEL=="i2c-[0-9]*", GROUP="i2c", MODE="0660"
'';
}

View file

@ -0,0 +1,3 @@
{...}: {
virtualisation.libvirtd.enable = true;
}

View file

@ -0,0 +1,6 @@
{...}: {
virtualisation.podman = {
enable = true;
dockerCompat = true;
};
}