mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-06 05:25:41 -05:00
* feat: Make niri stuff optional * doc: Add some documentation about the flake * Simplify modules. * Overlay pkgs and simplify modules. * Fix niri config levels. * Fix documentation. * Just pass the packages to the module --------- Co-authored-by: Eduardo Barreto Alexandre <blibs@blobs.com> Co-authored-by: Luis González <5774777+luis-agm@users.noreply.github.com>
65 lines
2.0 KiB
Nix
65 lines
2.0 KiB
Nix
{
|
|
description = "Dank Material Shell";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixpkgs-unstable";
|
|
quickshell = {
|
|
url = "git+https://git.outfoxxed.me/quickshell/quickshell";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
dgop = {
|
|
url = "github:AvengeMedia/dgop";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
dms-cli = {
|
|
url = "github:AvengeMedia/danklinux";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
quickshell,
|
|
dgop,
|
|
dms-cli,
|
|
...
|
|
}: let
|
|
forEachSystem = fn:
|
|
nixpkgs.lib.genAttrs
|
|
["aarch64-darwin" "aarch64-linux" "x86_64-darwin" "x86_64-linux"]
|
|
(system: fn system nixpkgs.legacyPackages.${system});
|
|
in {
|
|
formatter = forEachSystem (_: pkgs: pkgs.alejandra);
|
|
|
|
packages = forEachSystem (system: pkgs: {
|
|
dankMaterialShell = pkgs.stdenvNoCC.mkDerivation {
|
|
name = "dankMaterialShell";
|
|
src = ./.;
|
|
installPhase = ''
|
|
mkdir -p $out/etc/xdg/quickshell/DankMaterialShell
|
|
cp -r . $out/etc/xdg/quickshell/DankMaterialShell
|
|
ln -s $out/etc/xdg/quickshell/DankMaterialShell $out/etc/xdg/quickshell/dms
|
|
'';
|
|
};
|
|
|
|
quickshell = quickshell.packages.${system}.default;
|
|
|
|
default = self.packages.${system}.dankMaterialShell;
|
|
});
|
|
|
|
homeModules.dankMaterialShell.default = {pkgs, ...}: let
|
|
dmsPkgs = {
|
|
dmsCli = dms-cli.packages.${pkgs.system}.default;
|
|
dgop = dgop.packages.${pkgs.system}.dgop;
|
|
dankMaterialShell = self.packages.${pkgs.system}.dankMaterialShell;
|
|
};
|
|
in {
|
|
imports = [./nix/default.nix];
|
|
_module.args.dmsPkgs = dmsPkgs;
|
|
};
|
|
|
|
homeModules.dankMaterialShell.niri = import ./nix/niri.nix;
|
|
};
|
|
}
|