mirror of
https://github.com/Noratrieb/winxpbg.git
synced 2026-03-14 14:36:11 +01:00
Merge fb0c77041a into 39be4753e4
This commit is contained in:
commit
66ceaaa215
3 changed files with 74 additions and 0 deletions
25
README.md
25
README.md
|
|
@ -5,3 +5,28 @@ Windows XP as your desktop background.
|
|||
This embeds a GTK-based webview to use https://winxp.vercel.app/ as your desktop background.
|
||||
|
||||
Only works on Wayland with gtk-layer-shell.
|
||||
|
||||
## Nix
|
||||
|
||||
1. Import the repo as an overlay:
|
||||
|
||||
```nix
|
||||
let
|
||||
nixpkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [
|
||||
(import winxpbg)
|
||||
];
|
||||
};
|
||||
in
|
||||
...
|
||||
```
|
||||
2. Launch it with your desktop environment or window manager, for example with Niri:
|
||||
|
||||
```nix
|
||||
{
|
||||
programs.niri.settings.spawn-at-startup = [
|
||||
{ command = [ (lib.getExe pkgs.winxpbg) ]; }
|
||||
];
|
||||
}
|
||||
```
|
||||
|
|
|
|||
4
default.nix
Normal file
4
default.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# Overlay
|
||||
final: _: {
|
||||
winxpbg = final.callPackage ./package.nix { };
|
||||
}
|
||||
45
package.nix
Normal file
45
package.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
pkg-config,
|
||||
wrapGAppsHook4,
|
||||
glib,
|
||||
gtk4,
|
||||
webkitgtk_6_0,
|
||||
gtk4-layer-shell,
|
||||
}:
|
||||
let
|
||||
fs = lib.fileset;
|
||||
|
||||
files = fs.unions [
|
||||
./view
|
||||
];
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "winxpbg";
|
||||
inherit ((builtins.fromTOML (builtins.readFile ./view/Cargo.toml)).package) version;
|
||||
|
||||
src = fs.toSource {
|
||||
root = ./view;
|
||||
fileset = files;
|
||||
};
|
||||
|
||||
cargoLock.lockFile = ./view/Cargo.lock;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
wrapGAppsHook4
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
gtk4
|
||||
webkitgtk_6_0
|
||||
gtk4-layer-shell
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Windows XP as your desktop background";
|
||||
mainProgram = "minxpbg";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue