diff --git a/README.md b/README.md index 1eef680..0d8f99c 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ only KDE Plasma has been set up so far. (TODO: declaratively configure with [pla * "why `chitin`? why give your configuration files a name at all?" * because it's fun. and i wanted to use a distantly related web-like word for it. my affinity for fungi made me randomly one day decide that i'd name it after [chitin](https://en.wikipedia.org/wiki/Chitin), the primary molecule giving strength to mycelium networks. -* "did an AI help write-" +* "were these written by a coding assista-" * [No](https://www.sheeeeeeeep.art/software-in-current-era.html). diff --git a/modules/home/primaryUser/programs/fastfetch.nix b/modules/home/primaryUser/programs/fastfetch.nix new file mode 100644 index 0000000..7915eac --- /dev/null +++ b/modules/home/primaryUser/programs/fastfetch.nix @@ -0,0 +1,92 @@ +{ + flake.modules.homeManager.primaryUser = {pkgs, ...}: { + programs.fastfetch = { + enable = true; + settings = { + "$schema" = "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json"; + + logo = { + type = "small"; + padding.top = 4; + padding.left = 3; + padding.right = 4; + }; + + display.separator = " "; + + modules = [ + { + key = "╭─────────╮"; + type = "custom"; + } + { + key = "│ {#31}user {#keys}│"; + type = "title"; + format = "{user-name}"; + } + { + key = "│ {#32}host {#keys}│"; + type = "title"; + format = "{host-name}"; + } + { + key = "│ {#33}uptime {#keys}│"; + type = "uptime"; + } + { + key = "│ {#34}distro {#keys}│"; + type = "os"; + } + { + key = "│ {#35}kernel {#keys}│"; + type = "kernel"; + } + { + key = "│ {#36}desktop {#keys}│"; + type = "de"; + } + { + key = "│ {#31}term {#keys}│"; + type = "terminal"; + } + { + key = "│ {#32}shell {#keys}│"; + type = "shell"; + } + { + key = "│ {#33}cpu {#keys}│"; + type = "cpu"; + showPeCoreCount = true; + } + { + key = "│ {#34}disk {#keys}│"; + type = "disk"; + folders = "/"; + } + { + key = "│ {#35}memory {#keys}│"; + type = "memory"; + } + { + key = "│ {#36}network {#keys}│"; + type = "localip"; + format = "{ipv4} ({ifname})"; + } + { + key = "├─────────┤"; + type = "custom"; + } + { + key = "│ {#39}colors {#keys}│"; + type = "colors"; + symbol = "circle"; + } + { + key = "╰─────────╯"; + type = "custom"; + } + ]; + }; + }; + }; +} diff --git a/modules/hosts/phostron/entry.nix b/modules/hosts/phostron/entry.nix index b428543..9b738ca 100644 --- a/modules/hosts/phostron/entry.nix +++ b/modules/hosts/phostron/entry.nix @@ -19,6 +19,7 @@ homeManagerModule fish + starship primaryUser ]; }; diff --git a/modules/nixos/system-packages.nix b/modules/nixos/system-packages.nix index a61a233..dccb3bc 100644 --- a/modules/nixos/system-packages.nix +++ b/modules/nixos/system-packages.nix @@ -16,7 +16,6 @@ plocate traceroute rlwrap - wl-clipboard entr unzip ffmpeg diff --git a/modules/programs/atuin.nix b/modules/programs/atuin.nix new file mode 100644 index 0000000..91a4be6 --- /dev/null +++ b/modules/programs/atuin.nix @@ -0,0 +1,11 @@ +{ + flake.modules.nixos.base = { + programs.atuin = { + enable = true; + settings = { + sync_address = "https://api.atuin.sh"; + enter_accept = true; + }; + }; + }; +} diff --git a/modules/programs/fastfetch.nix b/modules/programs/fastfetch.nix deleted file mode 100644 index 8b15b9d..0000000 --- a/modules/programs/fastfetch.nix +++ /dev/null @@ -1,5 +0,0 @@ -{ - flake.modules.nixos.base = {pkgs, ...}: { - environment.systemPackages = [pkgs.fastfetch]; - }; -} diff --git a/modules/programs/nano.nix b/modules/programs/nano.nix index 0658b92..9d93c3d 100644 --- a/modules/programs/nano.nix +++ b/modules/programs/nano.nix @@ -3,7 +3,6 @@ programs.nano = { enable = true; package = pkgs.unstable.nano; - syntaxHighlight = true; nanorc = '' set atblanks set autoindent @@ -11,36 +10,17 @@ set constantshow set cutfromcursor set jumpyscrolling - set keycolor normal,normal + set linenumbers set minibar - set minicolor normal,lightblack set mouse set newbuffer - set nohelp - set numbercolor italic,lightblack,normal - set stateflags + set numbercolor italic,normal,normal set smarthome set softwrap set tabsize 4 set tabstospaces - set trimblanks - - bind M-F nextword main - bind M-B prevword main - - unbind ^S main - bind ^S whereis main - bind Sh-M-F findnext main - bind Sh-M-B findprevious main - - bind Sh-M-C "{execute}| wl-copy > /dev/null 2>&1 {enter}{undo}" main - - bind ^F forward main - bind ^B back main - bind M-< prevbuf main - bind M-> nextbuf main + set titlecolor normal,normal ''; }; }; } - diff --git a/modules/shells/starship.nix b/modules/shells/starship.nix new file mode 100644 index 0000000..e4aeca0 --- /dev/null +++ b/modules/shells/starship.nix @@ -0,0 +1,19 @@ +{ + flake.modules.nixos.starship = {pkgs, ...}: { + programs.starship = { + enable = true; + package = pkgs.unstable.starship; + transientPrompt.enable = true; + settings = { + "$schema" = "https://starship.rs/config-schema.json"; + git_status = { + ahead = ">"; + behind = "<"; + diverged = "<>"; + renamed = "r"; + deleted = "d"; + }; + }; + }; + }; +}