mirror of
https://github.com/NotAShelf/nyxexprs.git
synced 2024-11-22 21:31:03 +00:00
pkgs/gccn-wrapped: init
A version of gnome-control-center that sets the XDG_CURRENT_DESKTOP variable to "gnome"
This commit is contained in:
parent
55967fc299
commit
b5d5b03fb6
2 changed files with 32 additions and 3 deletions
|
@ -12,6 +12,7 @@ There are several packages exposed by this flake. Each directory in `pkgs` conta
|
||||||
| ani-cli | An up-to-date, auto updated version of ani-cli |
|
| ani-cli | An up-to-date, auto updated version of ani-cli |
|
||||||
| cloneit | A CLI tool to download specific GitHub directories or files |
|
| cloneit | A CLI tool to download specific GitHub directories or files |
|
||||||
| foot-transparent | A patched version of the foot terminal emulator that brings back fullscreen transparency[^1] |
|
| foot-transparent | A patched version of the foot terminal emulator that brings back fullscreen transparency[^1] |
|
||||||
|
| gccn-wrapped | A package providing a wrapper for gnome control center, tricking into thinking we use Gnome |
|
||||||
| headscale-ui | A web frontend for the headscale Tailscale-compatible coordination server |
|
| headscale-ui | A web frontend for the headscale Tailscale-compatible coordination server |
|
||||||
| mastodon-bird-ui | Mastodon web UI, but strongly inspired by Twitter. |
|
| mastodon-bird-ui | Mastodon web UI, but strongly inspired by Twitter. |
|
||||||
| mov-cli | A cli tool to browse and watch Movies/Shows/TV/Sports |
|
| mov-cli | A cli tool to browse and watch Movies/Shows/TV/Sports |
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = let
|
packages = let
|
||||||
inherit (pkgs) callPackage foot alejandra;
|
inherit (pkgs) callPackage foot alejandra fetchFromGitea;
|
||||||
|
|
||||||
pins = import ../npins;
|
pins = import ../npins;
|
||||||
mkPackage = path: {__functor = self: self.override;} // (callPackage path {inherit pins;});
|
mkPackage = path: {__functor = self: self.override;} // (callPackage path {inherit pins;});
|
||||||
|
@ -42,8 +42,21 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# patched packages
|
# patched packages
|
||||||
foot-transparent = foot.overrideAttrs (prev: {
|
|
||||||
mesonFlags = prev.mesonFlags ++ ["-Dfullscreen_alpha=true"];
|
foot-transparent = foot.overrideAttrs (prev: let
|
||||||
|
version = "2024-03-14-unstable";
|
||||||
|
in {
|
||||||
|
inherit version;
|
||||||
|
|
||||||
|
src = fetchFromGitea {
|
||||||
|
domain = "codeberg.org";
|
||||||
|
owner = "dnkl";
|
||||||
|
repo = "foot";
|
||||||
|
rev = "dd3bb13d97b405495465357f7b7b17c9f2bba3c2";
|
||||||
|
hash = "sha256-Pp3/cNELRYmTOQrJgHX6c+t0QkxEjoly0TLMKVj3H0E=";
|
||||||
|
};
|
||||||
|
|
||||||
|
mesonFlags = (prev.mesonFlags or []) ++ ["-Dfullscreen_alpha=true"];
|
||||||
patches = (prev.patches or []) ++ [../patches/0001-foot-transparent.patch];
|
patches = (prev.patches or []) ++ [../patches/0001-foot-transparent.patch];
|
||||||
mainProgram = "foot";
|
mainProgram = "foot";
|
||||||
});
|
});
|
||||||
|
@ -51,6 +64,21 @@
|
||||||
alejandra-no-ads = alejandra.overrideAttrs (prev: {
|
alejandra-no-ads = alejandra.overrideAttrs (prev: {
|
||||||
patches = (prev.patches or []) ++ [../patches/0003-alejandra-remove-ads.patch];
|
patches = (prev.patches or []) ++ [../patches/0003-alejandra-remove-ads.patch];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
# override gnome-control-center to trick it into thinking we're running gnome
|
||||||
|
# <https://github.com/NixOS/nixpkgs/issues/230493>
|
||||||
|
# <https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/736>
|
||||||
|
# get overriden idiot
|
||||||
|
gccn-wrapped = pkgs.gnome.gnome-control-center.overrideAttrs (prev: {
|
||||||
|
# gnome-control-center does not start without XDG_CURRENT_DESKTOP=gnome
|
||||||
|
preFixup =
|
||||||
|
''
|
||||||
|
gappsWrapperArgs+=(
|
||||||
|
--set XDG_CURRENT_DESKTOP "gnome"
|
||||||
|
);
|
||||||
|
''
|
||||||
|
+ prev.preFixup;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue