aboutsummaryrefslogtreecommitdiffstats
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rw-r--r--home/chromium.nix39
-rw-r--r--home/default.nix203
-rw-r--r--home/fastfetch.nix114
-rw-r--r--home/nushell.nix54
4 files changed, 212 insertions, 198 deletions
diff --git a/home/chromium.nix b/home/chromium.nix
new file mode 100644
index 0000000..00dbd1e
--- /dev/null
+++ b/home/chromium.nix
@@ -0,0 +1,39 @@
+{ pkgs, ... }:
+
+{
+ programs.chromium = {
+ enable = true;
+ package = pkgs.chromium;
+ commandLineArgs = [
+ "--load-media-router-component-extension=1"
+ "--enable-features=VaapiVideoDecodeLinuxGL,VaapiVideoEncoder,Vulkan,VulkanFromANGLE,DefaultANGLEVulkan,VaapiIgnoreDriverChecks,VaapiVideoDecoder,PlatformHEVCDecoderSupport,UseMultiPlaneFormatForHardwareVideo"
+ "--enable-features=UseOzonePlatform --ozone-platform=wayland"
+ "--enable-media-router"
+ "--enable-smooth-scrolling"
+ "--force-dark-mode"
+ ];
+ dictionaries = [ pkgs.hunspellDictsChromium.en_US ];
+ extensions = [
+ # vimium
+ # https://chromewebstore.google.com/detail/vimium/dbepggeogbaibhgnhhndojpepiihcmeb
+ "dbepggeogbaibhgnhhndojpepiihcmeb"
+
+ # bitwarden
+ # https://chromewebstore.google.com/detail/bitwarden-password-manage/nngceckbapebfimnlniiiahkandclblb
+ "nngceckbapebfimnlniiiahkandclblb"
+
+ # ublock origin lite
+ # https://chromewebstore.google.com/detail/ublock-origin-lite/ddkjiahejlhfcafbddmgiahcphecmpfh
+ "ddkjiahejlhfcafbddmgiahcphecmpfh"
+
+ # decentraleyes
+ # https://chromewebstore.google.com/detail/decentraleyes/ldpochfccmkkmhdbclfhpagapcfdljkj
+ "ldpochfccmkkmhdbclfhpagapcfdljkj"
+
+ # redeck
+ # https://chromewebstore.google.com/detail/readeck/jnmcpmfimecibicbojhopfkcbmkafhee?pli=1
+ "jnmcpmfimecibicbojhopfkcbmkafhee"
+ ];
+ };
+
+}
diff --git a/home/default.nix b/home/default.nix
index 831c668..4a9fc86 100644
--- a/home/default.nix
+++ b/home/default.nix
@@ -18,19 +18,22 @@ in
# ./helix
# ./lf
# ./quickshell
+ (import ./nvim { inherit unstable; })
./cargo
./chawan
+ ./chromium.nix
+ ./dav
./dunst
+ ./fastfetch.nix
./firefox
./fish
./git
./hyprland
./hyprlock
./mail
- ./dav
./mpv
./newsboat
- (import ./nvim { inherit unstable; })
+ ./nushell.nix
./tenere
./ticker
./vale
@@ -150,167 +153,6 @@ in
enableFishIntegration = true;
enableNushellIntegration = true;
};
- fastfetch = {
- enable = true;
- settings = {
- logo = {
- source = "nixos_small";
- padding = {
- right = 1;
- };
- };
- display = {
- size = {
- binaryPrefix = "si";
- };
- color = "blue";
- separator = "  ";
- };
- modules = [
- {
- type = "os";
- key = " OS";
- keyColor = "blue";
- }
- {
- type = "kernel";
- key = "󰌽 Kernel";
- keyColor = "blue";
- }
- "break"
- {
- type = "font";
- key = "󰛖 Font";
- }
- {
- type = "theme";
- key = "󰏘 Theme";
- }
- {
- type = "icons";
- key = "󰚝 Icons";
- }
- {
- type = "shell";
- key = "󰞷 Shell";
- }
- {
- type = "terminal";
- key = "󰆍 Terminal";
- }
- "break"
- {
- type = "display";
- key = "󰹑 Display";
- keyColor = "blue";
- }
- {
- type = "gpu";
- key = "󰢮 GPU";
- driverSpecific = true;
- temp = false;
- keyColor = "blue";
- }
- {
- type = "cpu";
- key = "󰍛 CPU";
- showPeCoreCount = true;
- temp = false;
- keyColor = "blue";
- }
- {
- type = "memory";
- key = " RAM";
- keyColor = "blue";
- }
- {
- type = "swap";
- key = " Swap";
- keyColor = "blue";
- }
- {
- type = "disk";
- key = "󰋊 Disk";
- keyColor = "blue";
- }
- {
- type = "uptime";
- key = "󰄉 Uptime";
- keyColor = "blue";
- }
- "break"
- {
- type = "localip";
- key = "󰩠 Local";
- showIpv6 = false;
- showMac = false;
- showSpeed = false;
- showMtu = false;
- showLoop = false;
- showFlags = false;
- showAllIps = false;
- }
- {
- type = "publicip";
- key = "󰩟 Externe";
- timeout = 1000;
- }
- "break"
- "colors"
- ];
- };
- };
-
- nushell = {
- enable = true;
- shellAliases = {
- browser = "${pkgs.chawan}/bin/cha";
- cat = "${pkgs.gat}/bin/gat";
- fj = "${pkgs.forgejo-cli}/bin/fj --host git.relesoft.io";
- gmail = "${pkgs.himalaya}/himalaya envelope list --account gmail --folder gmail/Inbox 'not flag Seen'";
- grep = "${pkgs.ripgrep}/bin/rg";
- http = "${pkgs.xh}/bin/xh";
- journalctl = "${pkgs.systemd}/bin/journalctl --output=short-iso";
- llm = "${pkgs.tenere}/bin/tenere";
- lt = "${pkgs.eza}/bin/eza --tree --level=2 --long --icons --git";
- relesoft = "${pkgs.himalaya}/himalaya envelope list --account relesoft --folder relesoft/Inbox 'not flag Seen'";
- stocks = "${pkgs.ticker}/bin/ticker --config /home/petri/.config/ticker/config.yaml";
- weather = "${pkgs.wthrr}/bin/wthrr --forecast d";
- wifi = "${pkgs.impala}/bin/impala";
- youtube = "${pkgs.pipe-viewer}/bin/pipe-viewer";
- };
- extraConfig = ''
- def ns [] {
- ${pkgs.nix-search-tv}/bin/nix-search-tv print | ${pkgs.fzf}/bin/fzf --preview "${pkgs.nix-search-tv}/bin/nix-search-tv preview {}" --scheme history
- }
-
- def doc [file: path] {
- ${pkgs.asciidoctor}/bin/asciidoctor --backend xhtml5 --out-file - $file |
- ${pkgs.chawan}/bin/cha -T application/xhtml+xml
- }
-
- def share [file: path] {
- ${pkgs.curl}/bin/curl -X PUT --data-binary @$file https://bin.tammi.cc
- }
-
- def import [...files] {
- ${pkgs.grim}/bin/grim -g ${pkgs.slurp}/bin/slurp $files
- }
-
- def readdoc [...args] {
- ${pkgs.reader}/bin/reader $args --markdown-output | ${pkgs.moor}/bin/moor --wrap --lang markdown
- }
- '';
- settings = {
- show_banner = false;
- completions = {
- case_sensitive = false;
- quick = true;
- partial = true;
- algorithm = "fuzzy";
- };
- };
- };
carapace = {
enable = true;
@@ -445,41 +287,6 @@ in
};
};
- chromium = {
- enable = true;
- package = pkgs.chromium;
- commandLineArgs = [
- "--load-media-router-component-extension=1"
- "--enable-features=VaapiVideoDecodeLinuxGL,VaapiVideoEncoder,Vulkan,VulkanFromANGLE,DefaultANGLEVulkan,VaapiIgnoreDriverChecks,VaapiVideoDecoder,PlatformHEVCDecoderSupport,UseMultiPlaneFormatForHardwareVideo"
- "--enable-features=UseOzonePlatform --ozone-platform=wayland"
- "--enable-media-router"
- "--enable-smooth-scrolling"
- "--force-dark-mode"
- ];
- dictionaries = [ pkgs.hunspellDictsChromium.en_US ];
- extensions = [
- # vimium
- # https://chromewebstore.google.com/detail/vimium/dbepggeogbaibhgnhhndojpepiihcmeb
- "dbepggeogbaibhgnhhndojpepiihcmeb"
-
- # bitwarden
- # https://chromewebstore.google.com/detail/bitwarden-password-manage/nngceckbapebfimnlniiiahkandclblb
- "nngceckbapebfimnlniiiahkandclblb"
-
- # ublock origin lite
- # https://chromewebstore.google.com/detail/ublock-origin-lite/ddkjiahejlhfcafbddmgiahcphecmpfh
- "ddkjiahejlhfcafbddmgiahcphecmpfh"
-
- # decentraleyes
- # https://chromewebstore.google.com/detail/decentraleyes/ldpochfccmkkmhdbclfhpagapcfdljkj
- "ldpochfccmkkmhdbclfhpagapcfdljkj"
-
- # redeck
- # https://chromewebstore.google.com/detail/readeck/jnmcpmfimecibicbojhopfkcbmkafhee?pli=1
- "jnmcpmfimecibicbojhopfkcbmkafhee"
- ];
- };
-
home-manager.enable = true;
};
diff --git a/home/fastfetch.nix b/home/fastfetch.nix
new file mode 100644
index 0000000..1923bab
--- /dev/null
+++ b/home/fastfetch.nix
@@ -0,0 +1,114 @@
+{ pkgs, ... }:
+
+{
+ programs.fastfetch = {
+ enable = true;
+ settings = {
+ logo = {
+ source = "nixos_small";
+ padding = {
+ right = 1;
+ };
+ };
+ display = {
+ size = {
+ binaryPrefix = "si";
+ };
+ color = "blue";
+ separator = "  ";
+ };
+ modules = [
+ {
+ type = "os";
+ key = " OS";
+ keyColor = "blue";
+ }
+ {
+ type = "kernel";
+ key = "󰌽 Kernel";
+ keyColor = "blue";
+ }
+ "break"
+ {
+ type = "font";
+ key = "󰛖 Font";
+ }
+ {
+ type = "theme";
+ key = "󰏘 Theme";
+ }
+ {
+ type = "icons";
+ key = "󰚝 Icons";
+ }
+ {
+ type = "shell";
+ key = "󰞷 Shell";
+ }
+ {
+ type = "terminal";
+ key = "󰆍 Terminal";
+ }
+ "break"
+ {
+ type = "display";
+ key = "󰹑 Display";
+ keyColor = "blue";
+ }
+ {
+ type = "gpu";
+ key = "󰢮 GPU";
+ driverSpecific = true;
+ temp = false;
+ keyColor = "blue";
+ }
+ {
+ type = "cpu";
+ key = "󰍛 CPU";
+ showPeCoreCount = true;
+ temp = false;
+ keyColor = "blue";
+ }
+ {
+ type = "memory";
+ key = " RAM";
+ keyColor = "blue";
+ }
+ {
+ type = "swap";
+ key = " Swap";
+ keyColor = "blue";
+ }
+ {
+ type = "disk";
+ key = "󰋊 Disk";
+ keyColor = "blue";
+ }
+ {
+ type = "uptime";
+ key = "󰄉 Uptime";
+ keyColor = "blue";
+ }
+ "break"
+ {
+ type = "localip";
+ key = "󰩠 Local";
+ showIpv6 = false;
+ showMac = false;
+ showSpeed = false;
+ showMtu = false;
+ showLoop = false;
+ showFlags = false;
+ showAllIps = false;
+ }
+ {
+ type = "publicip";
+ key = "󰩟 Externe";
+ timeout = 1000;
+ }
+ "break"
+ "colors"
+ ];
+ };
+ };
+}
diff --git a/home/nushell.nix b/home/nushell.nix
new file mode 100644
index 0000000..b6d9034
--- /dev/null
+++ b/home/nushell.nix
@@ -0,0 +1,54 @@
+{ pkgs, ... }:
+
+{
+ programs.nushell = {
+ enable = true;
+ shellAliases = {
+ browser = "${pkgs.chawan}/bin/cha";
+ cat = "${pkgs.gat}/bin/gat";
+ fj = "${pkgs.forgejo-cli}/bin/fj --host git.relesoft.io";
+ gmail = "${pkgs.himalaya}/himalaya envelope list --account gmail --folder gmail/Inbox 'not flag Seen'";
+ grep = "${pkgs.ripgrep}/bin/rg";
+ http = "${pkgs.xh}/bin/xh";
+ journalctl = "${pkgs.systemd}/bin/journalctl --output=short-iso";
+ llm = "${pkgs.tenere}/bin/tenere";
+ lt = "${pkgs.eza}/bin/eza --tree --level=2 --long --icons --git";
+ relesoft = "${pkgs.himalaya}/himalaya envelope list --account relesoft --folder relesoft/Inbox 'not flag Seen'";
+ stocks = "${pkgs.ticker}/bin/ticker --config /home/petri/.config/ticker/config.yaml";
+ weather = "${pkgs.wthrr}/bin/wthrr --forecast d";
+ wifi = "${pkgs.impala}/bin/impala";
+ youtube = "${pkgs.pipe-viewer}/bin/pipe-viewer";
+ };
+ extraConfig = ''
+ def ns [] {
+ ${pkgs.nix-search-tv}/bin/nix-search-tv print | ${pkgs.fzf}/bin/fzf --preview "${pkgs.nix-search-tv}/bin/nix-search-tv preview {}" --scheme history
+ }
+
+ def doc [file: path] {
+ ${pkgs.asciidoctor}/bin/asciidoctor --backend xhtml5 --out-file - $file |
+ ${pkgs.chawan}/bin/cha -T application/xhtml+xml
+ }
+
+ def share [file: path] {
+ ${pkgs.curl}/bin/curl -X PUT --data-binary @$file https://bin.tammi.cc
+ }
+
+ def import [...files] {
+ ${pkgs.grim}/bin/grim -g ${pkgs.slurp}/bin/slurp $files
+ }
+
+ def readdoc [...args] {
+ ${pkgs.reader}/bin/reader $args --markdown-output | ${pkgs.moor}/bin/moor --wrap --lang markdown
+ }
+ '';
+ settings = {
+ show_banner = false;
+ completions = {
+ case_sensitive = false;
+ quick = true;
+ partial = true;
+ algorithm = "fuzzy";
+ };
+ };
+ };
+}