diff options
Diffstat (limited to 'odino/home-manager')
| -rw-r--r-- | odino/home-manager/leo/programs/default.nix | 2 | ||||
| -rw-r--r-- | odino/home-manager/leo/programs/fastfetch.nix | 57 |
2 files changed, 59 insertions, 0 deletions
diff --git a/odino/home-manager/leo/programs/default.nix b/odino/home-manager/leo/programs/default.nix index e97a99a..711109e 100644 --- a/odino/home-manager/leo/programs/default.nix +++ b/odino/home-manager/leo/programs/default.nix @@ -1,7 +1,9 @@ {...}: { imports = [ ./zsh.nix + ./fastfetch.nix ]; zsh.enable = true; + fastfetch.enable = true; } diff --git a/odino/home-manager/leo/programs/fastfetch.nix b/odino/home-manager/leo/programs/fastfetch.nix new file mode 100644 index 0000000..94eccab --- /dev/null +++ b/odino/home-manager/leo/programs/fastfetch.nix @@ -0,0 +1,57 @@ +{lib, config, ...}: { + options.fastfetch.enable = lib.mkEnableOption "fastfetch config"; + + config = lib.mkIf config.fastfetch.enable { + programs.fastfetch = { + enable = true; + + settings = { + display = { + size = { + maxPrefix = "MB"; + ndigits = 0; + spaceBeforeUnit = "never"; + }; + freq = { + ndigits = 3; + spaceBeforeUnit = "never"; + }; + }; + modules = [ + "title" + "separator" + "os" + { + type = "kernel"; + format = "{release}"; + } + { + type = "packages"; + combined = true; + } + "shell" + { + type = "display"; + compactType = "original"; + key = "Resolution"; + } + "de" + "wm" + "terminal" + "cpu" + { + type = "gpu"; + key = "GPU"; + format = "{name}"; + } + { + type = "memory"; + format = "{used} / {total}"; + } + "break" + "colors" + ]; + }; + }; + }; +} |
