add some cli tools

This commit is contained in:
Kopatz
2024-06-09 12:25:16 +02:00
parent 087fb3058e
commit cb05d6aa18
8 changed files with 86 additions and 25 deletions

View File

@@ -17,6 +17,7 @@ set notimeout
set easymotion
set surround
nnoremap <leader>, :action IdeaVim.ReloadVimRc.reload<CR>
nnoremap <SPACE> <Nop>

View File

@@ -62,6 +62,9 @@
stylix.nixosModules.stylix
./modules/graphical/stylix.nix
./modules/graphical/cosmic.nix
({ outputs, ... }: {
stylix.image = ./yuyukowallpaper.png;
})
] else
[ ]);
specialArgs = specialArgs // { inherit inputs outputs; };

View File

@@ -20,6 +20,8 @@
goto = "cd $(find ~/projects -maxdepth 2 -type d | ${pkgs.fzf}/bin/fzf)";
dev = "nix-shell --run zsh";
rm = "trashy put";
cat = "bat -P --style plain";
cdf = "cd $(find . -type d | fzf)";
};
#plugins = with pkgs; [
# {

View File

@@ -12,6 +12,7 @@ in
environment.systemPackages = with pkgs; [
wget
pciutils
rippkgs # faster nixpkgs search, init with `rippkgs-index nixpkgs && mv rippkgs-index.sqlite ~/.local/share/`;
nixos-option
btop
git
@@ -45,6 +46,8 @@ in
nvd # nix diff, example: nvd diff /nix/var/nix/profiles/system-389-link /nix/var/nix/profiles/system-390-link
compsize
trashy # move files to trash
fzf # fuzzy finder
bat # fancy cat
];
};
}

View File

@@ -1,19 +1,14 @@
{config, lib, ...}:
{ config, lib, ... }:
with lib;
let
cfg = config.custom.nix.index;
in
{
options.custom.nix.index = {
enable = mkEnableOption "Enables nix index";
};
let cfg = config.custom.nix.index;
in {
options.custom.nix.index = { enable = mkEnableOption "Enables nix index"; };
config = mkIf cfg.enable {
programs.command-not-found.enable = false;
programs.nix-index = {
enable = true;
enableZshIntegration=true;
enableZshIntegration = true;
};
};
}

View File

@@ -3,7 +3,7 @@
example secrets.nix file
```
```nix
let
user1 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL0idNvgGiucWgup/mP78zyC23uFjYq0evcWdjGQUaBH";
users = [ user1 ];
@@ -17,7 +17,7 @@ in
```
use secret in config
```
```nix
age.secrets.nextcloud = {
file = ./secrets/secret1.age;
owner = "nextcloud";

View File

@@ -16,13 +16,10 @@
ld.enable = true;
settings.enable = true;
};
graphical = {
i3.enable = true;
};
graphical = { i3.enable = true; };
};
networking.networkmanager.enable = true;
environment.systemPackages = with pkgs; [ firefox ];
}

View File

@@ -1,5 +1,4 @@
{ osConfig, config, pkgs, inputs, lib, ...}:
{
{ osConfig, config, pkgs, inputs, lib, ... }: {
home = {
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
@@ -33,5 +32,66 @@
inputs.nix-colors.homeManagerModule
];
programs.newsboat = {
enable = true;
extraConfig = ''
bind-key j down
bind-key k up
bind-key J next-feed articlelist
bind-key K prev-feed articlelist
bind-key G end
bind-key g home
bind-key l open
bind-key h quit
# general settings
auto-reload yes
download-full-page yes
max-items 100
# limit width so articles are more readable
text-width 80
# solarized
color background color223 default
color listnormal color4 default
color listnormal_unread color2 default
color listfocus color223 color237 bold
color listfocus_unread color223 color237 bold
color info color8 color0
color article color223 default
# highlights
highlight article "^(Feed|Link):.*$" color11 default bold
highlight article "^(Title|Date|Author):.*$" color11 default bold
highlight article "https?://[^ ]+" color2 default underline
highlight article "\\[[0-9]+\\]" color2 default bold
highlight article "\\[image\\ [0-9]+\\]" color2 default bold
highlight feedlist "^.*$" color6 color6 bold
'';
urls = [
{
title = "r/NixOS";
tags = [ "nixos" "nix" "reddit" ];
url = "https://www.reddit.com/r/NixOS.rss";
}
{
title = "Hacker News";
url = "https://hnrss.org/newest";
}
{
title = "Phoronix";
url = "https://www.phoronix.com/rss.php";
}
{
title = "LWN";
url = "https://lwn.net/headlines/rss";
}
{
title = "/g/";
tags = [ "4chan" "technology" ];
url = "https://boards.4channel.org/g/index.rss";
}
];
};
#colorScheme = import ../../home-manager/themes/yorha/colors.nix;
}