some changes
This commit is contained in:
parent
64b831e6ea
commit
3bf888f7c8
|
@ -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 |
5
hosts/common/system/udev.nix
Normal file
5
hosts/common/system/udev.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{...}: {
|
||||||
|
services.udev.extraRules = ''
|
||||||
|
KERNEL=="i2c-[0-9]*", GROUP="i2c", MODE="0660"
|
||||||
|
'';
|
||||||
|
}
|
3
hosts/earth/services/libvirtd.nix
Normal file
3
hosts/earth/services/libvirtd.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{...}: {
|
||||||
|
virtualisation.libvirtd.enable = true;
|
||||||
|
}
|
6
hosts/earth/services/podman.nix
Normal file
6
hosts/earth/services/podman.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{...}: {
|
||||||
|
virtualisation.podman = {
|
||||||
|
enable = true;
|
||||||
|
dockerCompat = true;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue