From 956c260268f60a9b80eb74a0786c8a22f096d9be Mon Sep 17 00:00:00 2001 From: Swarsel Date: Wed, 24 Jul 2024 19:49:18 +0200 Subject: [PATCH] feat: add waybar as custom module --- SwarselSystems.org | 18 ++++-- index.html | 116 +++++++++++++++++++++----------------- modules/home/default.nix | 1 + modules/home/hardware.nix | 11 +--- modules/home/waybar.nix | 13 +++++ 5 files changed, 93 insertions(+), 66 deletions(-) create mode 100644 modules/home/waybar.nix diff --git a/SwarselSystems.org b/SwarselSystems.org index 03069e8..dff81e5 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -4470,6 +4470,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a monitors = import ./monitors.nix; input = import ./input.nix; nixos = import ./nixos.nix; + waybar = import ./waybar.nix; } #+end_src @@ -4493,16 +4494,25 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a ***** Hardware #+begin_src nix :tangle modules/home/hardware.nix + { lib, ... }: + + { + options.swarselsystems.cpuCount = lib.mkOption { + type = lib.types.int; + default = 8; + }; + } +#+end_src + +***** Waybar + +#+begin_src nix :tangle modules/home/waybar.nix { lib, config, ... }: let generateIcons = n: lib.concatStringsSep " " (builtins.map (x: "{icon" + toString x + "}") (lib.range 0 (n - 1))); in { - options.swarselsystems.cpuCount = lib.mkOption { - type = lib.types.int; - default = 8; - }; options.swarselsystems.cpuString = lib.mkOption { type = lib.types.str; default = generateIcons config.swarselsystems.cpuCount; diff --git a/index.html b/index.html index 150aa28..b930441 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + SwarselSystems: NixOS + Emacs Configuration @@ -223,7 +223,7 @@ -
  • 3.2. Overlays, packages, and modules +
  • 3.2. Overlays, packages, and modules
  • 3.3. Common NixOS @@ -253,7 +253,7 @@
  • 3.3.1. Imports, enable home-manager module
  • 3.3.2. General
  • 3.3.3. sops
  • -
  • 3.3.4. Theme (stylix)
  • +
  • 3.3.4. Theme (stylix)
  • 3.3.5. System Packages
  • 3.3.6. Programs (including zsh setup)
  • 3.3.7. Services
  • @@ -263,7 +263,7 @@
  • 3.4. Common Home-Manager