Johan Rong 1 lună în urmă
părinte
comite
bcc61a5c6a

+ 6 - 1
home/modules/configs/fish.nix → home/modules/configs/fish/default.nix

@@ -1,4 +1,9 @@
-{ pkgs, ... }: {
+{ pkgs, ... }:
+{
+  imports = [
+    ./dev-flakes.nix
+  ];
+
   programs.fish = {
     enable = true;
 

+ 14 - 0
home/modules/configs/fish/dev-flakes.nix

@@ -0,0 +1,14 @@
+{ pkgs, ... }: {
+  programs.fish = {
+    functions = {
+      devflake = {
+        body = ''
+          set -l flake_dir "$HOME/nix-dots/dev-flakes"
+          echo $flake_dir
+          echo $tool, $name
+        '';
+        argumentNames = [ "tool" "name" ];
+      };
+    };
+  };
+}

+ 1 - 1
hosts/ideapad/home/default.nix

@@ -8,6 +8,6 @@
     ../../../home/modules/shells/dms-shell
 
     ../../../home/modules/configs/alacritty.nix
-    ../../../home/modules/configs/fish.nix
+    ../../../home/modules/configs/fish
   ];
 }

+ 1 - 1
hosts/nixstation/home/default.nix

@@ -8,6 +8,6 @@
     ../../../home/modules/shells/dms-shell
 
     ../../../home/modules/configs/alacritty.nix
-    ../../../home/modules/configs/fish.nix
+    ../../../home/modules/configs/fish
   ];
 }

+ 1 - 0
nixos/profiles/workstation/default.nix

@@ -45,6 +45,7 @@
     firefox
     bitwarden-desktop
     brightnessctl
+    samba
   ];
 
   programs.appimage = {