add some cli tools
This commit is contained in:
@@ -17,6 +17,7 @@ set notimeout
|
|||||||
set easymotion
|
set easymotion
|
||||||
set surround
|
set surround
|
||||||
|
|
||||||
|
|
||||||
nnoremap <leader>, :action IdeaVim.ReloadVimRc.reload<CR>
|
nnoremap <leader>, :action IdeaVim.ReloadVimRc.reload<CR>
|
||||||
|
|
||||||
nnoremap <SPACE> <Nop>
|
nnoremap <SPACE> <Nop>
|
||||||
|
|||||||
@@ -62,6 +62,9 @@
|
|||||||
stylix.nixosModules.stylix
|
stylix.nixosModules.stylix
|
||||||
./modules/graphical/stylix.nix
|
./modules/graphical/stylix.nix
|
||||||
./modules/graphical/cosmic.nix
|
./modules/graphical/cosmic.nix
|
||||||
|
({ outputs, ... }: {
|
||||||
|
stylix.image = ./yuyukowallpaper.png;
|
||||||
|
})
|
||||||
] else
|
] else
|
||||||
[ ]);
|
[ ]);
|
||||||
specialArgs = specialArgs // { inherit inputs outputs; };
|
specialArgs = specialArgs // { inherit inputs outputs; };
|
||||||
|
|||||||
@@ -20,6 +20,8 @@
|
|||||||
goto = "cd $(find ~/projects -maxdepth 2 -type d | ${pkgs.fzf}/bin/fzf)";
|
goto = "cd $(find ~/projects -maxdepth 2 -type d | ${pkgs.fzf}/bin/fzf)";
|
||||||
dev = "nix-shell --run zsh";
|
dev = "nix-shell --run zsh";
|
||||||
rm = "trashy put";
|
rm = "trashy put";
|
||||||
|
cat = "bat -P --style plain";
|
||||||
|
cdf = "cd $(find . -type d | fzf)";
|
||||||
};
|
};
|
||||||
#plugins = with pkgs; [
|
#plugins = with pkgs; [
|
||||||
# {
|
# {
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ in
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
wget
|
wget
|
||||||
pciutils
|
pciutils
|
||||||
|
rippkgs # faster nixpkgs search, init with `rippkgs-index nixpkgs && mv rippkgs-index.sqlite ~/.local/share/`;
|
||||||
nixos-option
|
nixos-option
|
||||||
btop
|
btop
|
||||||
git
|
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
|
nvd # nix diff, example: nvd diff /nix/var/nix/profiles/system-389-link /nix/var/nix/profiles/system-390-link
|
||||||
compsize
|
compsize
|
||||||
trashy # move files to trash
|
trashy # move files to trash
|
||||||
|
fzf # fuzzy finder
|
||||||
|
bat # fancy cat
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,19 +1,14 @@
|
|||||||
{config, lib, ...}:
|
{ config, lib, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let cfg = config.custom.nix.index;
|
||||||
cfg = config.custom.nix.index;
|
in {
|
||||||
in
|
options.custom.nix.index = { enable = mkEnableOption "Enables nix index"; };
|
||||||
{
|
|
||||||
options.custom.nix.index = {
|
|
||||||
enable = mkEnableOption "Enables nix index";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.command-not-found.enable = false;
|
programs.command-not-found.enable = false;
|
||||||
programs.nix-index = {
|
programs.nix-index = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration=true;
|
enableZshIntegration = true;
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
|
|
||||||
example secrets.nix file
|
example secrets.nix file
|
||||||
```
|
```nix
|
||||||
let
|
let
|
||||||
user1 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL0idNvgGiucWgup/mP78zyC23uFjYq0evcWdjGQUaBH";
|
user1 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL0idNvgGiucWgup/mP78zyC23uFjYq0evcWdjGQUaBH";
|
||||||
users = [ user1 ];
|
users = [ user1 ];
|
||||||
@@ -17,7 +17,7 @@ in
|
|||||||
```
|
```
|
||||||
|
|
||||||
use secret in config
|
use secret in config
|
||||||
```
|
```nix
|
||||||
age.secrets.nextcloud = {
|
age.secrets.nextcloud = {
|
||||||
file = ./secrets/secret1.age;
|
file = ./secrets/secret1.age;
|
||||||
owner = "nextcloud";
|
owner = "nextcloud";
|
||||||
|
|||||||
@@ -16,13 +16,10 @@
|
|||||||
ld.enable = true;
|
ld.enable = true;
|
||||||
settings.enable = true;
|
settings.enable = true;
|
||||||
};
|
};
|
||||||
graphical = {
|
graphical = { i3.enable = true; };
|
||||||
i3.enable = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [ firefox ];
|
environment.systemPackages = with pkgs; [ firefox ];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{ osConfig, config, pkgs, inputs, lib, ...}:
|
{ osConfig, config, pkgs, inputs, lib, ... }: {
|
||||||
{
|
|
||||||
home = {
|
home = {
|
||||||
# This value determines the Home Manager release that your
|
# This value determines the Home Manager release that your
|
||||||
# configuration is compatible with. This helps avoid breakage
|
# configuration is compatible with. This helps avoid breakage
|
||||||
@@ -33,5 +32,66 @@
|
|||||||
inputs.nix-colors.homeManagerModule
|
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;
|
#colorScheme = import ../../home-manager/themes/yorha/colors.nix;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user