1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-05-15 00:32:47 -04:00

flake: use quickshell from nixpkgs-unstable pkgs

This commit is contained in:
LuckShiba
2026-05-14 03:06:29 -03:00
parent d49c49cd99
commit 5433303210
4 changed files with 31 additions and 41 deletions
+20 -3
View File
@@ -3,6 +3,7 @@
config, config,
pkgs, pkgs,
dmsPkgs, dmsPkgs,
options,
... ...
}: }:
let let
@@ -24,7 +25,7 @@ let
lib.makeBinPath [ lib.makeBinPath [
cfg.quickshell.package cfg.quickshell.package
compositorPackage compositorPackage
pkgs.glib # provides gdbus, used by the fprintd hardware probe in GreeterContent.qml pkgs.glib # provides gdbus, used by the fprintd hardware probe in GreeterContent.qml
] ]
} }
${ ${
@@ -117,8 +118,24 @@ in
''; '';
}; };
quickshell = { quickshell = {
package = lib.mkPackageOption dmsPkgs "quickshell" { package = lib.mkOption {
extraDescription = "The quickshell package to use (defaults to be built from source, in the commit 26531f due to unreleased features used by DMS)."; default =
if (lib.hasAttrByPath [ "programs" "dank-material-shell" "quickshell" "package" ] options) then
config.programs.dank-material-shell.quickshell.package
else
pkgs.quickshell;
defaultText = ''
if (lib.hasAttrByPath [ "programs" "dank-material-shell" "quickshell" "package" ] options) then
config.programs.dank-material-shell.quickshell.package
else
pkgs.quickshell;
'';
description = ''
The quickshell package to use (we recommend at least 0.3.0, currently available in nixos-unstable).
Defaults to the same set in `programs.dank-material-shell.quickshell.package`, if using the NixOS module.";
'';
}; };
}; };
logs.save = lib.mkEnableOption "saving logs from DMS greeter to file"; logs.save = lib.mkEnableOption "saving logs from DMS greeter to file";
+2 -2
View File
@@ -80,8 +80,8 @@ in
}; };
quickshell = { quickshell = {
package = lib.mkPackageOption dmsPkgs "quickshell" { package = lib.mkPackageOption pkgs "quickshell" {
extraDescription = "The quickshell package to use (defaults to be built from source, due to unreleased features used by DMS)."; extraDescription = "(we recommend at least 0.3.0, currently available in nixos-unstable)";
}; };
}; };
Generated
+4 -26
View File
@@ -18,11 +18,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1776169885, "lastModified": 1778443072,
"narHash": "sha256-l/iNYDZ4bGOAFQY2q8y5OAfBBtrDAaPuRQqWaFHVRXM=", "narHash": "sha256-zi7/fsqM/kFdNuED//4WOCUtezGtKKqRNORjMvfwjnA=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "4bd9165a9165d7b5e33ae57f3eecbcb28fb231c9", "rev": "da5ad661ba4e5ef59ba743f0d112cbc30e474f32",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -32,32 +32,10 @@
"type": "github" "type": "github"
} }
}, },
"quickshell": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1776854048,
"narHash": "sha256-lLbV66V3RMNp1l8/UelmR4YzoJ5ONtgvEtiUMJATH/o=",
"ref": "refs/heads/master",
"rev": "783c953987dc56ff0601abe6845ed96f1d00495a",
"revCount": 806,
"type": "git",
"url": "https://git.outfoxxed.me/quickshell/quickshell"
},
"original": {
"rev": "783c953987dc56ff0601abe6845ed96f1d00495a",
"type": "git",
"url": "https://git.outfoxxed.me/quickshell/quickshell"
}
},
"root": { "root": {
"inputs": { "inputs": {
"flake-compat": "flake-compat", "flake-compat": "flake-compat",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs"
"quickshell": "quickshell"
} }
} }
}, },
+5 -10
View File
@@ -3,10 +3,6 @@
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
quickshell = {
url = "git+https://git.outfoxxed.me/quickshell/quickshell?rev=783c953987dc56ff0601abe6845ed96f1d00495a";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-compat = { flake-compat = {
url = "github:NixOS/flake-compat"; url = "github:NixOS/flake-compat";
flake = false; flake = false;
@@ -17,7 +13,6 @@
{ {
self, self,
nixpkgs, nixpkgs,
quickshell,
... ...
}: }:
let let
@@ -180,15 +175,14 @@
buildDmsPkgs = pkgs: { buildDmsPkgs = pkgs: {
dms-shell = mkDmsShell pkgs; dms-shell = mkDmsShell pkgs;
quickshell = quickshell.packages.${pkgs.stdenv.hostPlatform.system}.default;
}; };
in in
{ {
packages = forEachSystem ( packages = forEachSystem (
system: pkgs: { system: pkgs: {
dms-shell = mkDmsShell pkgs; dms-shell = mkDmsShell pkgs;
quickshell = quickshell.packages.${system}.default;
default = self.packages.${system}.dms-shell; default = self.packages.${system}.dms-shell;
quickshell = builtins.warn "dank-material-shell: the package Quickshell is not included in the DMS flake anymore. We recommend you to use the one from nixos-unstable branch of Nixpkgs or the upstream flake." pkgs.quickshell;
} }
); );
@@ -213,9 +207,10 @@
devShells = forEachSystem ( devShells = forEachSystem (
system: pkgs: system: pkgs:
let let
devQmlPkgs = [ devQmlPkgs = with pkgs;
quickshell.packages.${system}.default [
pkgs.kdePackages.qtdeclarative quickshell
kdePackages.qtdeclarative
] ]
++ (qmlPkgs pkgs); ++ (qmlPkgs pkgs);
in in