chore: make namespace generic so people can copy easier

This commit is contained in:
Christoph Hollizeck 2024-10-11 00:17:03 +02:00
parent 0158f7ff06
commit 0562818aa7
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
45 changed files with 249 additions and 217 deletions

View file

@ -28,7 +28,7 @@ in
config = mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];
wyrdgard.home.file = {
${namespace}.home.file = {
".config/rofi/config.rasi".source = ./config.rasi;
};
};

View file

@ -15,7 +15,7 @@ let
mkIf
types
;
inherit (lib.wyrdgard) enabled;
inherit (lib.${namespace}) enabled;
in
{
options.${namespace}.desktop.addons.waybar = {
@ -39,7 +39,7 @@ in
noto-fonts-cjk-sans
];
wyrdgard.home.file = {
${namespace}.home.file = {
".config/waybar/config.jsonc".source = ./config.jsonc;
".config/waybar/style.css".source = ./style.css;
};

View file

@ -1,15 +1,16 @@
{
lib,
config,
lib,
namespace,
pkgs,
...
}:
let
user = config.wyrdgard.user.name;
user = config.${namespace}.user.name;
in
{
config = {
wyrdgard.home.extraOptions = {
${namespace}.home.extraOptions = {
dconf.settings = {
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";

View file

@ -7,7 +7,7 @@
namespace,
...
}:
with lib.wyrdgard;
with lib.${namespace};
let
inherit (lib)
mkIf
@ -29,7 +29,7 @@ let
if [[ $running != "" ]]; then
hyprctl dispatch workspace $running
else
# always open on w/space 4
# always open on w/space 4
hyprctl dispatch workspace 4
1password&
fi
@ -79,7 +79,7 @@ in
};
};
wyrdgard = {
${namespace} = {
desktop.addons = {
waybar = enabled;
rofi = {

View file

@ -6,7 +6,7 @@
...
}:
with lib;
with lib.wyrdgard;
with lib.${namespace};
let
cfg = config.${namespace}.desktop.kde;
in