switch greetd wayland session manager from niri to cage fork
This commit is contained in:
parent
6632dde007
commit
9eebcf7562
8 changed files with 100 additions and 13 deletions
|
|
@ -85,11 +85,11 @@ in {
|
||||||
+ config.youthlic.gui.niri.extraConfig);
|
+ config.youthlic.gui.niri.extraConfig);
|
||||||
in {
|
in {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
# settings = {
|
||||||
default_session = {
|
# default_session = {
|
||||||
command = "env GTK_USE_PORTAL=0 GDK_DEBUG=no-portals ${lib.getExe' config.programs.niri.package "niri"} --config ${niriConfig} -- ${lib.getExe config.programs.regreet.package}";
|
# command = "env GTK_USE_PORTAL=0 GDK_DEBUG=no-portals ${lib.getExe' config.programs.niri.package "niri"} --config ${niriConfig} -- ${lib.getExe config.programs.regreet.package}";
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
xserver = {
|
xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -102,6 +102,7 @@ in {
|
||||||
programs = {
|
programs = {
|
||||||
regreet = {
|
regreet = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
cageArgs = ["-s" "-m" "named" "-o" "DP-3"];
|
||||||
};
|
};
|
||||||
niri = {
|
niri = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
5
overlays/modifications/cage.nix
Normal file
5
overlays/modifications/cage.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{outputs, ...}: final: prev: let
|
||||||
|
inherit (prev.stdenv.hostPlatform) system;
|
||||||
|
in {
|
||||||
|
inherit (outputs.packages."${system}") cage;
|
||||||
|
}
|
||||||
|
|
@ -8,6 +8,7 @@ in
|
||||||
./dae.nix
|
./dae.nix
|
||||||
./jujutsu.nix
|
./jujutsu.nix
|
||||||
./spotifyx.nix
|
./spotifyx.nix
|
||||||
|
./cage.nix
|
||||||
]
|
]
|
||||||
|> map (file: import file args)
|
|> map (file: import file args)
|
||||||
|> (overlays: (lib.composeManyExtensions overlays) final prev)
|
|> (overlays: (lib.composeManyExtensions overlays) final prev)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,25 @@
|
||||||
{
|
{
|
||||||
|
"cage": {
|
||||||
|
"cargoLocks": null,
|
||||||
|
"date": "2025-05-11",
|
||||||
|
"extract": null,
|
||||||
|
"name": "cage",
|
||||||
|
"passthru": null,
|
||||||
|
"pinned": false,
|
||||||
|
"src": {
|
||||||
|
"deepClone": false,
|
||||||
|
"fetchSubmodules": false,
|
||||||
|
"leaveDotGit": false,
|
||||||
|
"name": null,
|
||||||
|
"owner": "qaqland",
|
||||||
|
"repo": "cage",
|
||||||
|
"rev": "b4e9f729c301787239677b1bdd4235436bad99c7",
|
||||||
|
"sha256": "sha256-bPEi77/ENcKVlBmg3KrnmvtCqbLrwEvUqSyhONF3XtU=",
|
||||||
|
"sparseCheckout": [],
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"version": "b4e9f729c301787239677b1bdd4235436bad99c7"
|
||||||
|
},
|
||||||
"dioxionary": {
|
"dioxionary": {
|
||||||
"cargoLocks": {
|
"cargoLocks": {
|
||||||
"./Cargo.lock": [
|
"./Cargo.lock": [
|
||||||
|
|
@ -92,7 +113,7 @@
|
||||||
},
|
},
|
||||||
"rime-ice": {
|
"rime-ice": {
|
||||||
"cargoLocks": null,
|
"cargoLocks": null,
|
||||||
"date": "2025-05-08",
|
"date": "2025-05-11",
|
||||||
"extract": null,
|
"extract": null,
|
||||||
"name": "rime-ice",
|
"name": "rime-ice",
|
||||||
"passthru": null,
|
"passthru": null,
|
||||||
|
|
@ -104,12 +125,12 @@
|
||||||
"name": null,
|
"name": null,
|
||||||
"owner": "iDvel",
|
"owner": "iDvel",
|
||||||
"repo": "rime-ice",
|
"repo": "rime-ice",
|
||||||
"rev": "60cd1631f9f5023cf00e86adc535571d1b86f1b2",
|
"rev": "face4fabbe9d2ab01e73ec3cc6253924cca5e2f7",
|
||||||
"sha256": "sha256-3K25oc4q/5pmZL7WYoSR6RyjgV+7o7W6MzBcIKeRD0Y=",
|
"sha256": "sha256-K+xYo4SBDws5oPKVkxkfosw8sizzFO9DWxWEu7PRPQ0=",
|
||||||
"sparseCheckout": [],
|
"sparseCheckout": [],
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"version": "60cd1631f9f5023cf00e86adc535571d1b86f1b2"
|
"version": "face4fabbe9d2ab01e73ec3cc6253924cca5e2f7"
|
||||||
},
|
},
|
||||||
"spotx": {
|
"spotx": {
|
||||||
"cargoLocks": null,
|
"cargoLocks": null,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,18 @@
|
||||||
# This file was generated by nvfetcher, please do not modify it manually.
|
# This file was generated by nvfetcher, please do not modify it manually.
|
||||||
{ fetchgit, fetchurl, fetchFromGitHub, dockerTools }:
|
{ fetchgit, fetchurl, fetchFromGitHub, dockerTools }:
|
||||||
{
|
{
|
||||||
|
cage = {
|
||||||
|
pname = "cage";
|
||||||
|
version = "b4e9f729c301787239677b1bdd4235436bad99c7";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "qaqland";
|
||||||
|
repo = "cage";
|
||||||
|
rev = "b4e9f729c301787239677b1bdd4235436bad99c7";
|
||||||
|
fetchSubmodules = false;
|
||||||
|
sha256 = "sha256-bPEi77/ENcKVlBmg3KrnmvtCqbLrwEvUqSyhONF3XtU=";
|
||||||
|
};
|
||||||
|
date = "2025-05-11";
|
||||||
|
};
|
||||||
dioxionary = {
|
dioxionary = {
|
||||||
pname = "dioxionary";
|
pname = "dioxionary";
|
||||||
version = "4db80d458ff7494967c94ebb1db596abba0775b2";
|
version = "4db80d458ff7494967c94ebb1db596abba0775b2";
|
||||||
|
|
@ -65,15 +77,15 @@
|
||||||
};
|
};
|
||||||
rime-ice = {
|
rime-ice = {
|
||||||
pname = "rime-ice";
|
pname = "rime-ice";
|
||||||
version = "60cd1631f9f5023cf00e86adc535571d1b86f1b2";
|
version = "face4fabbe9d2ab01e73ec3cc6253924cca5e2f7";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "iDvel";
|
owner = "iDvel";
|
||||||
repo = "rime-ice";
|
repo = "rime-ice";
|
||||||
rev = "60cd1631f9f5023cf00e86adc535571d1b86f1b2";
|
rev = "face4fabbe9d2ab01e73ec3cc6253924cca5e2f7";
|
||||||
fetchSubmodules = false;
|
fetchSubmodules = false;
|
||||||
sha256 = "sha256-3K25oc4q/5pmZL7WYoSR6RyjgV+7o7W6MzBcIKeRD0Y=";
|
sha256 = "sha256-K+xYo4SBDws5oPKVkxkfosw8sizzFO9DWxWEu7PRPQ0=";
|
||||||
};
|
};
|
||||||
date = "2025-05-08";
|
date = "2025-05-11";
|
||||||
};
|
};
|
||||||
spotx = {
|
spotx = {
|
||||||
pname = "spotx";
|
pname = "spotx";
|
||||||
|
|
|
||||||
41
pkgs/cage.nix
Normal file
41
pkgs/cage.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
srcs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (srcs) cage;
|
||||||
|
cageWithEnvOption = pkgs.cage.overrideAttrs (final: prev: {
|
||||||
|
inherit (cage) src version;
|
||||||
|
});
|
||||||
|
in
|
||||||
|
pkgs.writeShellApplication {
|
||||||
|
name = "cage";
|
||||||
|
runtimeInputs = [cageWithEnvOption];
|
||||||
|
text = ''
|
||||||
|
args=()
|
||||||
|
output=
|
||||||
|
|
||||||
|
while [[ $# -gt 0 ]]; do
|
||||||
|
case "$1" in
|
||||||
|
-o)
|
||||||
|
if [[ $# -ge 2 ]]; then
|
||||||
|
output="$2"
|
||||||
|
shift 2
|
||||||
|
else
|
||||||
|
args+=("$1")
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
args+=("$1")
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
if [[ -n "$output" ]]; then
|
||||||
|
CAGE_OUTPUT_NAME="$output" cage "''${args[@]}"
|
||||||
|
else
|
||||||
|
cage "''${args[@]}"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
@ -13,6 +13,7 @@ in
|
||||||
rime-ice = callPackage ./rime-ice.nix {};
|
rime-ice = callPackage ./rime-ice.nix {};
|
||||||
dioxionary = callPackage ./dioxionary.nix {};
|
dioxionary = callPackage ./dioxionary.nix {};
|
||||||
spotifyx = callPackage ./spotifyx.nix {};
|
spotifyx = callPackage ./spotifyx.nix {};
|
||||||
|
cage = callPackage ./cage.nix {};
|
||||||
|
|
||||||
noto-serif-cjk = callPackage ./noto-serif-cjk.nix {};
|
noto-serif-cjk = callPackage ./noto-serif-cjk.nix {};
|
||||||
noto-sans-cjk = callPackage ./noto-sans-cjk.nix {};
|
noto-sans-cjk = callPackage ./noto-sans-cjk.nix {};
|
||||||
|
|
|
||||||
|
|
@ -29,3 +29,8 @@ git.sparseCheckout = ["Sans/OTC"]
|
||||||
[spotx]
|
[spotx]
|
||||||
src.git = "https://github.com/SpotX-Official/SpotX-Bash.git"
|
src.git = "https://github.com/SpotX-Official/SpotX-Bash.git"
|
||||||
fetch.github = "SpotX-Official/SpotX-Bash"
|
fetch.github = "SpotX-Official/SpotX-Bash"
|
||||||
|
|
||||||
|
[cage]
|
||||||
|
src.git = "https://github.com/qaqland/cage.git"
|
||||||
|
src.branch = "orenv"
|
||||||
|
fetch.github = "qaqland/cage"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue