🖌️ Styled Fastfetch, more info in README, alias for fastfetch

This commit is contained in:
Martin Berg Alstad 2025-01-19 19:59:54 +01:00
parent 29ac28bd15
commit fd8ca5a8c3
Signed by: martials
GPG Key ID: 706F53DD087A91DE
5 changed files with 78 additions and 3 deletions

BIN
Catppuccin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -4,17 +4,25 @@ My NixOS configurations with dotfiles for my desktop
![Screenshot of desktop](./assets/desktop.png)
## Includes
## Uses
| | |
|--------|------------|
| ------ | ---------- |
| WM | Hyprland |
| Shell | Fish |
| Prompt | Starship |
| Theme | Catppuccin |
| GPU | NVidia |
| Panel | Hyprpanel |
| Runner | Rofi |
| Fetch | Fastfetch |
Requires Nix-channel with [NixOS 24.11](https://nixos.org/)
## Commands
Scripts will not run unless the necessary packages have been added to the path, either in a shell or by running nixos-rebuild
Format all .nix files
```Shell
@ -36,3 +44,11 @@ Rebuild and switch Nix configuration
```Shell
./rebuild
```
Update and switch
- Will update the flakes and nix-channel, then switch if there are no errors
```Shell
./update
```

View File

@ -17,6 +17,7 @@ in
./cursors.nix
./default-applications.nix
./development
./fastfetch.nix
./fish.nix
./freetube.nix
./gtk.nix

View File

@ -0,0 +1,57 @@
{
programs.fastfetch = {
enable = true;
settings = {
logo = {
source = "${../Catppuccin.png}";
type = "kitty";
height = 18;
padding.top = 2;
};
display.separator = " ";
modules =
let
keyColor = "34";
module = type: key: {
inherit type key keyColor;
};
formatModule = type: key: format: {
inherit
type
key
format
keyColor
;
};
in
[
"break"
"break"
{
type = "title";
keyWidth = 10;
}
"break"
(module "os" " ")
(module "kernel" " ")
(formatModule "packages" " " "{} (nixpkgs)")
(module "shell" " ")
(module "terminal" " ")
(module "wm" " ")
(module "theme" " ")
(module "cursor" " ")
(module "terminalfont" " ")
(module "uptime" " ")
(formatModule "datetime" " " "{1}-{3}-{11}")
(module "cpu" " ")
(module "gpu" "󰤽 ")
(module "sound" " ")
(module "lm" " ")
"break"
"colors"
"break"
"break"
];
};
};
}

View File

@ -24,7 +24,8 @@
shellAliases = {
# Transfer shell config to target device
ssh = "kitty +kitten ssh";
nix-shell = "nix-shell --run fish"; # Start nix-shells using fish
nix-shell = "nix-shell --run fish"; # Start nix-shells using fishcd
fetch = "fastfetch";
};
};
};