added comments for casual readers
This commit is contained in:
@@ -8,15 +8,17 @@
|
||||
foot
|
||||
];
|
||||
});
|
||||
# PerSystem, gives access to self' and inputs', as well as some helper functions
|
||||
perSystem = {
|
||||
inputs',
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
# Simple wrapper for foot, sets background color to bright red
|
||||
packages.foot = inputs.wrappers.wrappers.foot.wrap {
|
||||
inherit pkgs;
|
||||
settings = {
|
||||
colors-dark.backround = "FF0000";
|
||||
colors-dark.background = "FF0000";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
{moduleWithSystem, ...}: {
|
||||
# moduleWithSystem for Hyprland
|
||||
flake.nixosModules.hyprland = moduleWithSystem ({self', ...}: {
|
||||
# Native wrapper for hyprland instead of environment.systemPackages
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
package = self'.packages.hyprland;
|
||||
@@ -11,11 +13,14 @@
|
||||
self',
|
||||
...
|
||||
}: {
|
||||
# Override input pacakge (using inputs' for right version)
|
||||
packages.hyprland = inputs'.hyprland.packages.default.override {
|
||||
# Change runtimePkgs to add custom foot version
|
||||
runtimePkgs = with pkgs;
|
||||
[
|
||||
waybar
|
||||
]
|
||||
# ++ adds two sets together
|
||||
++ (with self'.packages; [
|
||||
foot
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user