mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-10 12:16:32 +03:00
pcbu-desktop try
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
@@ -68,7 +69,12 @@
|
||||
cups-pdf.enable = true;
|
||||
};
|
||||
};
|
||||
# environment.sessionVariables = {
|
||||
# NIXOS_OZONE_WL = "1";
|
||||
# environment = {
|
||||
# systemPackages = [
|
||||
# pkgs.pcbu-desktop
|
||||
# ];
|
||||
# # sessionVariables = {
|
||||
# # NIXOS_OZONE_WL = "1";
|
||||
# # };
|
||||
# };
|
||||
}
|
||||
|
||||
@@ -4,4 +4,5 @@
|
||||
}:
|
||||
self: super: {
|
||||
rovr = inputs.self.packages.x86_64-linux.rovr;
|
||||
pcbu-desktop = inputs.self.packages.x86_64-linux.pcbu-desktop;
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@ in
|
||||
{
|
||||
packages.${system} = {
|
||||
rovr = pkgs.callPackage ./rovr { };
|
||||
pcbu-desktop = pkgs.callPackage ./pcbu-desktop { };
|
||||
# immich = pkgs.callPackage ./immich { };
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
{ pkgs }:
|
||||
|
||||
let
|
||||
pname = "pcbu-desktop";
|
||||
version = "3.2.3";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/MeisApps/pcbu-desktop/releases/download/v${version}/PCBioUnlock-x64.AppImage";
|
||||
sha256 = "sha256-+NxAm6vhMH51z6BscuFvaMidHN/3tNBR1g+i0q9hjWE=";
|
||||
};
|
||||
|
||||
in pkgs.appimageTools.wrapType2 {
|
||||
inherit pname version src;
|
||||
|
||||
extraPkgs = pkgs: with pkgs; [
|
||||
glib
|
||||
nss
|
||||
nspr
|
||||
libdrm
|
||||
libGL
|
||||
libxkbcommon
|
||||
libX11
|
||||
libXcursor
|
||||
libXrandr
|
||||
libXi
|
||||
libXext
|
||||
libXfixes
|
||||
libXrender
|
||||
libXtst
|
||||
libxcrypt-legacy
|
||||
gtk3
|
||||
alsa-lib
|
||||
at-spi2-atk
|
||||
at-spi2-core
|
||||
cups
|
||||
dbus
|
||||
expat
|
||||
pango
|
||||
cairo
|
||||
];
|
||||
|
||||
extraInstallCommands = ''
|
||||
mkdir -p $out/share/applications
|
||||
cat > $out/share/applications/${pname}.desktop <<EOF
|
||||
[Desktop Entry]
|
||||
Name=PCBU Desktop
|
||||
Exec=${pname}
|
||||
Type=Application
|
||||
Categories=Utility;
|
||||
EOF
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
Для сервиса пригодится:
|
||||
|
||||
```
|
||||
hardware.bluetooth.enable = true;
|
||||
services.dbus.enable = true;
|
||||
networking.firewall.allowedUDPPorts = [ ... ];
|
||||
networking.firewall.allowedTCPPorts = [ ... ];
|
||||
```
|
||||
|
||||
---
|
||||
pcbu-desktop-3.2.3-fhsenv-rootfs> building '/nix/store/8q029crhzkqw1vqvjbnxvmpgpwfr9sk1-pcbu-desktop-3.2.3-fhsenv-rootfs.drv'
|
||||
pcbu-desktop-3.2.3-fhsenv-rootfs> structuredAttrs is enabled
|
||||
pcbu-desktop-3.2.3-fhsenv-rootfs> Warning: Schema ?org.gnome.system.locale? has path ?/system/locale/?. Paths starting with ?/apps/?, ?/desktop/? or ?/system/? are deprecated.
|
||||
pcbu-desktop-3.2.3-fhsenv-rootfs> Warning: Schema ?org.gnome.system.proxy? has path ?/system/proxy/?. Paths starting with ?/apps/?, ?/desktop/? or ?/system/? are deprecated.
|
||||
pcbu-desktop-3.2.3-fhsenv-rootfs> Warning: Schema ?org.gnome.system.proxy.http? has path ?/system/proxy/http/?. Paths starting with ?/apps/?, ?/desktop/? or ?/system/? are deprecated.
|
||||
pcbu-desktop-3.2.3-fhsenv-rootfs> Warning: Schema ?org.gnome.system.proxy.https? has path ?/system/proxy/https/?. Paths starting with ?/apps/?, ?/desktop/? or ?/system/? are deprecated.
|
||||
pcbu-desktop-3.2.3-fhsenv-rootfs> Warning: Schema ?org.gnome.system.proxy.ftp? has path ?/system/proxy/ftp/?. Paths starting with ?/apps/?, ?/desktop/? or ?/system/? are deprecated.
|
||||
pcbu-desktop-3.2.3-fhsenv-rootfs> Warning: Schema ?org.gnome.system.proxy.socks? has path ?/system/proxy/socks/?. Paths starting with ?/apps/?, ?/desktop/? or ?/system/? are deprecated.
|
||||
pcbu-desktop-3.2.3-bwrap> building '/nix/store/6pzpm3vzia2jjfjizh8yx8v1n8l9apnr-pcbu-desktop-3.2.3-bwrap.drv'
|
||||
pcbu-desktop> building '/nix/store/9jrq44m27r427rfxvbn3ym7b4y6hnnha-pcbu-desktop-3.2.3.drv'
|
||||
Reference in New Issue
Block a user