From e912fd156bd19607eefb6e47ecbc0d1622ce142c Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Tue, 17 Nov 2026 16:53:26 -0500 Subject: [PATCH] add quadshell --- flake.lock | 21 +++++++++++++++++++++ flake.nix | 4 ++++ modules/mobile/quadshell.nix | 16 ++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 modules/mobile/quadshell.nix diff --git a/flake.lock b/flake.lock index c3a167f..bcaabb4 100644 --- a/flake.lock +++ b/flake.lock @@ -1227,6 +1227,26 @@ "type": "github" } }, + "quadshell": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1794952294, + "narHash": "sha256-vRU0fxynA0W6KnH4eN4wp0FP1YWtU9jDhamrfNX7T3I=", + "ref": "refs/heads/main", + "rev": "7f2794a630be74129ea6a4e9717d97378d1224ee", + "revCount": 1, + "type": "git", + "url": "https://git.federated.nexus/Henry-Hiles/quadshell" + }, + "original": { + "type": "git", + "url": "https://git.federated.nexus/Henry-Hiles/quadshell" + } + }, "root": { "inputs": { "agenix": "agenix", @@ -1250,6 +1270,7 @@ "nix-maid": "nix-maid", "nixphone": "nixphone", "nixpkgs": "nixpkgs", + "quadshell": "quadshell", "run0-sudo-shim": "run0-sudo-shim", "sable": "sable", "sable-next": "sable-next", diff --git a/flake.nix b/flake.nix index 4bfc9f3..0d6477c 100755 --- a/flake.nix +++ b/flake.nix @@ -12,6 +12,10 @@ url = "git+https://git.federated.nexus/Henry-Hiles/app-grid"; inputs.nixpkgs.follows = "nixpkgs"; }; + quadshell = { + url = "git+https://git.federated.nexus/Henry-Hiles/quadshell"; + inputs.nixpkgs.follows = "nixpkgs"; + }; niri-mobile = { url = "github:Henry-Hiles/niri/quad/mobile"; inputs.nixpkgs.follows = "nixpkgs"; diff --git a/modules/mobile/quadshell.nix b/modules/mobile/quadshell.nix new file mode 100644 index 0000000..b22795e --- /dev/null +++ b/modules/mobile/quadshell.nix @@ -0,0 +1,16 @@ +{ + lib, + pkgs, + inputs, + ... +}: +{ + nixpkgs.overlays = [ inputs.quadshell.overlays.default ]; + + # The flashlight LED's brightness is writable by this group + users.users.quadradical.extraGroups = [ "feedbackd" ]; + + environment.etc."niri/config.kdl".text = '' + spawn-at-startup "${lib.getExe pkgs.quadshell}" + ''; +}