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">
- +-This file has 42312 words spanning 11425 lines and was last revised on 2024-07-24 19:14:57 +0200. +This file has 42328 words spanning 11435 lines and was last revised on 2024-07-24 19:48:15 +0200.
@@ -449,7 +449,7 @@ This section defines my Emacs configuration. For a while, I considered to use ry
-My emacs is built using the emacs-overlay nix flake, which builds a bleeding edge emacs on wayland (pgtk) with utilities like treesitter support. By executing the below source block, the current build setting can be updated at any time, and you can see my most up-to-date build options (last updated: 2024-07-24 19:14:57 +0200) +My emacs is built using the emacs-overlay nix flake, which builds a bleeding edge emacs on wayland (pgtk) with utilities like treesitter support. By executing the below source block, the current build setting can be updated at any time, and you can see my most up-to-date build options (last updated: 2024-07-24 19:48:15 +0200)
In this section I define packages that I manually want to nixpkgs. This can be useful for packages that are currently awaiting a PR or public packages that I do not want to maintain. @@ -5566,8 +5566,8 @@ These are for packages that are on nixpkgs, but do not fit my usecase, meaning I This is simply a mirror of the most recent stable branch of nixpkgs. Useful for packages that are broken on nixpkgs, but do not need to be on bleeding edge anyways.
@@ -5577,8 +5577,8 @@ _ : rec { }
@@ -5611,15 +5611,15 @@ _ : rec { }
In this section I define custom modules under the swarsel attribute. These are mostly used to define settings specific to a host. I keep these settings confined to either home-manager or nixos to maintain compatibility with non-NixOS machines.
{
@@ -5642,12 +5642,13 @@ 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;
}
{ lib, config, ... }:
@@ -5666,19 +5667,30 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
{ lib, ... }:
+
+{
+ options.swarselsystems.cpuCount = lib.mkOption {
+ type = lib.types.int;
+ default = 8;
+ };
+ }
+
+ { 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;
@@ -5690,8 +5702,8 @@ in
{ lib, config, ... }:
let
@@ -5707,8 +5719,8 @@ in
{ lib, config, ... }:
let
@@ -5743,8 +5755,8 @@ in
{ lib, config, ... }:
@@ -6305,8 +6317,8 @@ I use sops-nix to handle secrets that I want to have available on my machines at
By default, stylix wants to style GRUB as well. However, I think that looks horrible. @@ -6488,7 +6500,7 @@ Some programs profit from being installed through dedicated NixOS settings on sy
@@ -6584,7 +6596,7 @@ Enables the blueman service including the nice system tray icon.
In this section we enable compatibility with several network devices I have at home, mainly printers and scanners. @@ -6636,7 +6648,7 @@ services.printing = {
Avahi is the service used for the network discovery. @@ -6790,8 +6802,8 @@ This section houses the greetd related settings. I do not really want to use a d
This section sets up all the imports that are used in the home-manager section. @@ -7599,8 +7611,8 @@ This section is for programs that require no further configuration. zsh Integrat
nix-index provides a way to find out which packages are provided by which derivations. By default it also comes with a replacement for command-not-found.sh, however, the implementation is based on a channel based setup. I like consistency, so I replace the command with one that provides a flakes-based output.
@@ -9944,7 +9956,7 @@ The standard Emacs behaviour for the Python process shell is a bit annoying. Thi
This function searches for common delimiters in region and removes them, summarizing all captured lines by it. @@ -9977,7 +9989,7 @@ This function searches for common delimiters in region and removes them, summari
This formats the org code block at point in accordance to the nixpkgs-fmt formatter
@@ -11550,8 +11562,8 @@ This adds a rudimentary nix-mode to Emacs. I have not really tried this out, as
Adds functions for formatting nix code. @@ -13566,7 +13578,7 @@ My laptop, sadly soon to be replaced by a new one, since most basic functions ar