1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-05 21:15:38 -05:00

Merge pull request #164 from sezaru/support_multiple_systems

feat: Add support for multiple systems in flake
This commit is contained in:
purian23
2025-09-05 20:00:31 -04:00
committed by GitHub

View File

@@ -11,10 +11,12 @@
outputs = { self, nixpkgs, quickshell, dms-cli, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
forEachSystem = fn:
nixpkgs.lib.genAttrs
nixpkgs.lib.platforms.linux
(system: fn system nixpkgs.legacyPackages.${system});
in {
packages.${system} = {
packages = forEachSystem (system: pkgs: rec {
dankMaterialShell = pkgs.stdenvNoCC.mkDerivation {
name = "dankMaterialShell";
src = ./.;
@@ -26,7 +28,7 @@
};
default = self.packages.${system}.dankMaterialShell;
};
});
homeModules.dankMaterialShell = { config, pkgs, lib, ... }:
let cfg = config.programs.dankMaterialShell;
@@ -45,9 +47,9 @@
config = lib.mkIf cfg.enable {
programs.quickshell = {
enable = true;
package = quickshell.packages.${system}.quickshell;
package = quickshell.packages.${pkgs.system}.quickshell;
configs.DankMaterialShell = "${
self.packages.${system}.dankMaterialShell
self.packages.${pkgs.system}.dankMaterialShell
}/etc/xdg/quickshell/DankMaterialShell";
activeConfig = lib.mkIf cfg.enableSystemd "DankMaterialShell";
systemd = lib.mkIf cfg.enableSystemd {