dank-material-shell: init (#2177)
Closes: https://github.com/nix-community/stylix/issues/1924 Link: https://github.com/nix-community/stylix/pull/1932 Link: https://github.com/nix-community/stylix/pull/2177 Reviewed-by: 0xda157 <da157@voidq.com> Co-authored-by: khas-amir <dlordproudd@gmail.com> Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
parent
6982a42da5
commit
aa0272b6e0
6 changed files with 120 additions and 0 deletions
44
flake/dev/flake.lock
generated
44
flake/dev/flake.lock
generated
|
|
@ -1,5 +1,26 @@
|
|||
{
|
||||
"nodes": {
|
||||
"dankMaterialShell": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"dev-nixpkgs"
|
||||
],
|
||||
"quickshell": "quickshell"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1769830502,
|
||||
"narHash": "sha256-Z/6ttgM5CCsgIhdPb7ZO20uQ6vgFeFs6lr2AlD+RWLM=",
|
||||
"owner": "AvengeMedia",
|
||||
"repo": "DankMaterialShell",
|
||||
"rev": "4602442feb7b9de19b92a762b440b895edb8a39a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "AvengeMedia",
|
||||
"repo": "DankMaterialShell",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"dev-flake-parts": {
|
||||
"inputs": {
|
||||
"nixpkgs-lib": [
|
||||
|
|
@ -221,8 +242,31 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"quickshell": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"dankMaterialShell",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1766725085,
|
||||
"narHash": "sha256-O2aMFdDUYJazFrlwL7aSIHbUSEm3ADVZjmf41uBJfHs=",
|
||||
"ref": "refs/heads/master",
|
||||
"rev": "41828c4180fb921df7992a5405f5ff05d2ac2fff",
|
||||
"revCount": 715,
|
||||
"type": "git",
|
||||
"url": "https://git.outfoxxed.me/quickshell/quickshell"
|
||||
},
|
||||
"original": {
|
||||
"rev": "41828c4180fb921df7992a5405f5ff05d2ac2fff",
|
||||
"type": "git",
|
||||
"url": "https://git.outfoxxed.me/quickshell/quickshell"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"dankMaterialShell": "dankMaterialShell",
|
||||
"dev-flake-parts": "dev-flake-parts",
|
||||
"dev-nixpkgs": "dev-nixpkgs",
|
||||
"dev-systems": "dev-systems",
|
||||
|
|
|
|||
|
|
@ -130,6 +130,11 @@
|
|||
dev-systems.url = "github:nix-systems/default";
|
||||
|
||||
# keep-sorted start block=yes newline_separated=yes
|
||||
dankMaterialShell = {
|
||||
url = "github:AvengeMedia/DankMaterialShell";
|
||||
inputs.nixpkgs.follows = "dev-nixpkgs";
|
||||
};
|
||||
|
||||
flake-compat.url = "github:NixOS/flake-compat";
|
||||
|
||||
git-hooks = {
|
||||
|
|
|
|||
47
modules/dank-material-shell/hm.nix
Normal file
47
modules/dank-material-shell/hm.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
mkTarget,
|
||||
lib,
|
||||
options,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
mkTarget {
|
||||
config = lib.optionals (options.programs ? dank-material-shell) (
|
||||
{ colors }:
|
||||
{
|
||||
programs.dank-material-shell.settings = {
|
||||
currentThemeName = "custom";
|
||||
customThemeFile =
|
||||
let
|
||||
theme = with colors.withHashtag; {
|
||||
name = "Stylix";
|
||||
primary = base0D;
|
||||
primaryText = base00;
|
||||
primaryContainer = base0C;
|
||||
secondary = base0E;
|
||||
surface = base01;
|
||||
surfaceText = base05;
|
||||
surfaceVariant = base02;
|
||||
surfaceVariantText = base04;
|
||||
surfaceTint = base0D;
|
||||
background = base00;
|
||||
backgroundText = base05;
|
||||
outline = base03;
|
||||
surfaceContainer = base01;
|
||||
surfaceContainerHigh = base02;
|
||||
surfaceContainerHighest = base03;
|
||||
error = base08;
|
||||
warning = base0A;
|
||||
info = base0C;
|
||||
};
|
||||
in
|
||||
pkgs.writeText "dankMaterialShell-stylix-color-theme.json" (
|
||||
builtins.toJSON {
|
||||
dark = theme;
|
||||
light = theme;
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
9
modules/dank-material-shell/meta.nix
Normal file
9
modules/dank-material-shell/meta.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
name = "DankMaterialShell";
|
||||
homepage = "https://github.com/AvengeMedia/DankMaterialShell";
|
||||
maintainers = with lib.maintainers; [
|
||||
khas-amir
|
||||
skiletro
|
||||
];
|
||||
}
|
||||
11
modules/dank-material-shell/testbeds/dank-material-shell.nix
Normal file
11
modules/dank-material-shell/testbeds/dank-material-shell.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
stylix.testbed.ui = {
|
||||
graphicalEnvironment = "hyprland";
|
||||
command.text = "dms run";
|
||||
};
|
||||
|
||||
home-manager.sharedModules = lib.singleton {
|
||||
programs.dank-material-shell.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -35,6 +35,10 @@ let
|
|||
{
|
||||
inherit (inputs.spicetify-nix.nixosModules) spicetify;
|
||||
|
||||
dank-material-shell.home-manager.sharedModules = [
|
||||
inputs.dankMaterialShell.homeModules.dank-material-shell
|
||||
];
|
||||
|
||||
nixvim-integrated = inputs.nixvim.nixosModules.nixvim;
|
||||
|
||||
nixvim-standalone.lib.stylix.testbed = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue