mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat: add stylix as custom module
This commit is contained in:
parent
ec82754ae1
commit
821d5cb78e
8 changed files with 157 additions and 67 deletions
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
laptop = import ./laptop.nix;
|
||||
hardware = import ./hardware.nix;
|
||||
monitors = import ./monitors.nix;
|
||||
input = import ./input.nix;
|
||||
nixos = import ./nixos.nix;
|
||||
|
|
|
|||
17
modules/home/hardware.nix
Normal file
17
modules/home/hardware.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ 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;
|
||||
description = "The generated icons string for use by Waybar.";
|
||||
internal = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue