modules.system.gui: enable dankMaterialShell when using niri

This commit is contained in:
2025-09-23 21:33:36 +08:00
parent f645276a30
commit 601573b79d
4 changed files with 97 additions and 0 deletions

87
flake.lock generated
View File

@@ -159,6 +159,29 @@
"type": "github"
}
},
"dankmaterialshell": {
"inputs": {
"dgop": "dgop",
"dms-cli": "dms-cli",
"nixpkgs": [
"nixpkgs"
],
"quickshell": "quickshell"
},
"locked": {
"lastModified": 1758600599,
"narHash": "sha256-3onswXeioU41VylRhhc7dbkxsxrOoI7EQhFA4OgXruQ=",
"owner": "AvengeMedia",
"repo": "DankMaterialShell",
"rev": "b9b173763982461782e6e708bcfcbd0b0adc0499",
"type": "github"
},
"original": {
"owner": "AvengeMedia",
"repo": "DankMaterialShell",
"type": "github"
}
},
"date": {
"flake": false,
"locked": {
@@ -217,6 +240,48 @@
"type": "github"
}
},
"dgop": {
"inputs": {
"nixpkgs": [
"dankmaterialshell",
"nixpkgs"
]
},
"locked": {
"lastModified": 1757252286,
"narHash": "sha256-QwWQzlxAGvIi6VAc8DQ6ONCKKwtPyaHQW1cQyGbP7Og=",
"owner": "AvengeMedia",
"repo": "dgop",
"rev": "a65a02ddf8bade9c109d055e644e4bd851183bd5",
"type": "github"
},
"original": {
"owner": "AvengeMedia",
"repo": "dgop",
"type": "github"
}
},
"dms-cli": {
"inputs": {
"nixpkgs": [
"dankmaterialshell",
"nixpkgs"
]
},
"locked": {
"lastModified": 1757296630,
"narHash": "sha256-3H236F5oIKkqpfnwrvZQs4Y5imKb6JCMFGDkHs8VDjQ=",
"owner": "AvengeMedia",
"repo": "danklinux",
"rev": "dac591711ab30d6b071a5cec674a3d2e04665ee1",
"type": "github"
},
"original": {
"owner": "AvengeMedia",
"repo": "danklinux",
"type": "github"
}
},
"fancy-motd": {
"flake": false,
"locked": {
@@ -1232,6 +1297,27 @@
"type": "github"
}
},
"quickshell": {
"inputs": {
"nixpkgs": [
"dankmaterialshell",
"nixpkgs"
]
},
"locked": {
"lastModified": 1756981260,
"narHash": "sha256-GhuD9QVimjynHI0OOyZsqJsnlXr2orowh9H+HYz4YMs=",
"ref": "refs/heads/master",
"rev": "6eb12551baf924f8fdecdd04113863a754259c34",
"revCount": 672,
"type": "git",
"url": "https://git.outfoxxed.me/quickshell/quickshell"
},
"original": {
"type": "git",
"url": "https://git.outfoxxed.me/quickshell/quickshell"
}
},
"root": {
"inputs": {
"aagl": "aagl",
@@ -1242,6 +1328,7 @@
"chaotic": "chaotic",
"concurrencpp": "concurrencpp",
"cppcoro": "cppcoro",
"dankmaterialshell": "dankmaterialshell",
"date": "date",
"fancy-motd": "fancy-motd",
"hextra": "hextra",

View File

@@ -33,6 +33,7 @@
buildproxy = { url = "github:polygon/nix-buildproxy"; inputs.nixpkgs.follows = "nixpkgs"; };
niri.url = "github:sodiboo/niri-flake";
nix4vscode = { url = "github:nix-community/nix4vscode"; inputs.nixpkgs.follows = "nixpkgs"; };
dankmaterialshell = { url = "github:AvengeMedia/DankMaterialShell"; inputs.nixpkgs.follows = "nixpkgs"; };
misskey = { url = "git+https://github.com/CHN-beta/misskey?submodules=1"; flake = false; };
rsshub = { url = "github:DIYgod/RSSHub"; flake = false; };

View File

@@ -24,6 +24,7 @@ inputs: let inherit (inputs) topInputs; in
[
topInputs.plasma-manager.homeModules.plasma-manager
topInputs.catppuccin.homeModules.catppuccin
topInputs.dankmaterialshell.homeModules.dankMaterialShell
];
};
})

View File

@@ -67,6 +67,14 @@ inputs:
(inputs.lib.mkIf (gui.implementation == "niri")
{
programs.niri.enable = true;
nixos.user.sharedModules = [(hmInputs:
{
config.programs =
{
niri.enable = true;
dankMaterialShell = { enable = true; enableKeybinds = true; enableSystemd = true; };
};
})];
})
];
}