7 커밋 e4506ba026 ... f15ed8ff26

작성자 SHA1 메시지 날짜
  Johan Rong f15ed8ff26 update monoweb flake 6 일 전
  Johan Rong 041dcc3a39 update monoweb flake 6 일 전
  Johan Rong a60a1f5043 new very nice shell script 6 일 전
  Johan Rong c76e9d70c9 rename nixstation to straume 1 주 전
  Johan Rong bdde221c5c sdklfhd 1 주 전
  Johan Rong 1cb9614a7a remove hypryou 1 주 전
  Johan Rong 100ef6ba77 ff 1 주 전

+ 1 - 1
config/hosts.nix

@@ -7,7 +7,7 @@ let
   };
 
   hosts = {
-    nixstation = {};
+    straume = {};
     ideapad = {};
     lyderhorn = {};
     moholt = { user = users.server; };

+ 12 - 1
data/flake/js/monoweb.nix

@@ -21,8 +21,19 @@
             docker
             docker-compose
             prisma-engines
+            openssl
             prisma
+            awscli2
+            python3
           ];
+
+          shellHook = ''
+            export PRISMA_SCHEMA_ENGINE_BINARY="${pkgs.prisma-engines}/bin/schema-engine"
+            export PRISMA_QUERY_ENGINE_BINARY="${pkgs.prisma-engines}/bin/query-engine"
+            export PRISMA_QUERY_ENGINE_LIBRARY="${pkgs.prisma-engines}/lib/libquery_engine.so"
+            export PRISMA_FMT_BINARY="${pkgs.prisma-engines}/bin/prisma-fmt"
+            export LD_LIBRARY_PATH="${pkgs.lib.makeLibraryPath [ pkgs.openssl ]}:$LD_LIBRARY_PATH"
+          '';
         };
       });
-}
+}

+ 12 - 12
flake.lock

@@ -19,11 +19,11 @@
     "dank-qml-common_2": {
       "flake": false,
       "locked": {
-        "lastModified": 1792597131,
-        "narHash": "sha256-2t9btOQ2owoRv/fgeonlr8cHVt2NUvUu9iXdZd9+QFc=",
+        "lastModified": 1792768249,
+        "narHash": "sha256-ST868TtggCJDEMkWTTOj2oG4F2s+SiAjwjs3kYbJltI=",
         "owner": "duxlabs-dev",
         "repo": "dux-qml-common",
-        "rev": "5715e8ea868f3a131a0f54c7a5875e9a95f2f253",
+        "rev": "c392faee932369df77fa6aee466752a4580e9b9b",
         "type": "github"
       },
       "original": {
@@ -79,11 +79,11 @@
         ]
       },
       "locked": {
-        "lastModified": 1792610641,
-        "narHash": "sha256-UD6rFz2L3K0Ju6KabPAP1Vu0vxFd/xq13ekkl494Ohc=",
+        "lastModified": 1792770166,
+        "narHash": "sha256-OX++NJ3tbZxCD+luFROZey1xFGI7mnoou/4yp9qplRg=",
         "owner": "duxlabs-dev",
         "repo": "dux-files",
-        "rev": "240d78ed175eb20fd9e7f86becec75c06f1c0407",
+        "rev": "7816966ad330772ad574560dfdac75886a739bfa",
         "type": "github"
       },
       "original": {
@@ -100,11 +100,11 @@
         ]
       },
       "locked": {
-        "lastModified": 1792609211,
-        "narHash": "sha256-ZHbhVOg0p2PpxrynYaEFafGgnuR43e4DXEIEusw3b/Q=",
+        "lastModified": 1792683863,
+        "narHash": "sha256-S+1g1tKn2QorHHjJA0lMYZUYPWlQkeQ93dLxiafeW8E=",
         "owner": "duxlabs-dev",
         "repo": "dux-greeter",
-        "rev": "d85f83edd799bcf58841bbd2b536e04058918319",
+        "rev": "4034ba1f5035ce384b322e8b2865495dad3cbb93",
         "type": "github"
       },
       "original": {
@@ -238,11 +238,11 @@
         "scenefx": "scenefx"
       },
       "locked": {
-        "lastModified": 1792656482,
-        "narHash": "sha256-B2yYMXj1rqanf1mW9Nn3plVuOqvMijy8B+8FZk9v5z4=",
+        "lastModified": 1792753812,
+        "narHash": "sha256-yqtyYZQaJ6owTvRtgcv3rtIEngjzkalJ80eknjmJXwQ=",
         "owner": "mangowm",
         "repo": "mango",
-        "rev": "1df1e13f71d229dacc19cf955a55c9839606c275",
+        "rev": "a3990ecfd4ad14650712a599cd9010fcb72419bf",
         "type": "github"
       },
       "original": {

+ 2 - 1
home/modules/apps/fish/default.nix

@@ -5,6 +5,7 @@
 
     interactiveShellInit = ''
       set -g fish_greeting ""
+      source ${./project_cd.fish}
       direnv hook fish | source
     '';
 
@@ -55,7 +56,7 @@
         set -l pwd_color "blue"
 
         switch (prompt_hostname)
-            case 'nixstation'
+            case 'straume'
                 set primary_color "brblue"
                 set pwd_color "blue"
             case 'ono'

+ 78 - 0
home/modules/apps/fish/project_cd.fish

@@ -0,0 +1,78 @@
+set -g project_roots \
+    pu "$HOME/Projects/untracked" \
+    pj "$HOME/Projects/johron" \
+    pd "$HOME/Projects/dotkom" \
+    pz "$HOME/Projects/zelkel-lang"
+
+set -g project_max_depth 2
+
+function project_cd --description 'cd to a project root'
+    set -l root $argv[1]
+    set -l target $root
+
+    if test (count $argv) -gt 1
+        set target "$root/"(string join / $argv[2..-1])
+    end
+
+    cd "$target"
+end
+
+function __project_find_dirs
+    set -l base $argv[1]
+    set -l depth $argv[2]
+    set -l extra $argv[3..-1]
+
+    command find "$base" -mindepth 1 -maxdepth $depth \
+        \( -name '.*' -o -name node_modules -o -name target -o -name venv \
+           -o -name __pycache__ -o -name dist -o -name build \) -prune -o \
+        -type d $extra -printf '%P\n' 2>/dev/null
+end
+
+function __project_complete_directories --argument-names base
+    __project_find_dirs "$base" 1
+end
+
+function __project_complete_subdirectories --argument-names base
+    __project_find_dirs "$base" $project_max_depth
+end
+
+function p --description 'cd to a project directory anywhere under ~/Projects'
+    set -l root "$HOME/Projects"
+
+    if test (count $argv) -eq 0
+        cd "$root"
+        return
+    end
+
+    set -l target (string join / $argv)
+
+    if test -d "$root/$target"
+        cd "$root/$target"
+        return
+    end
+
+    set -l matches (__project_find_dirs "$root" $project_max_depth -name "$target")
+
+    switch (count $matches)
+        case 1
+            cd "$root/$matches[1]"
+        case 0
+            cd "$root/$target"
+        case '*'
+            printf '%s\n' $matches
+            return 1
+    end
+end
+
+for i in (seq 1 2 (count $project_roots))
+    set -l name $project_roots[$i]
+    set -l root $project_roots[(math $i + 1)]
+
+    function $name --inherit-variable root --description "cd to $root"
+        project_cd "$root" $argv
+    end
+
+    complete -c $name -f -a "(__project_complete_directories \"$root\")"
+end
+
+complete -c p -f -a "(__project_complete_subdirectories \"$HOME/Projects\")"

+ 0 - 0
hosts/nixstation/home/default.nix → hosts/straume/home/default.nix


+ 0 - 0
hosts/nixstation/home/hyprland.nix → hosts/straume/home/hyprland.nix


+ 0 - 0
hosts/nixstation/iso.nix → hosts/straume/iso.nix


+ 1 - 1
hosts/nixstation/nixos/default.nix → hosts/straume/nixos/default.nix

@@ -36,5 +36,5 @@ in
     AllowSuspendThenHibernate = "no";
   };
 
-  networking.hostName = hosts.nixstation.hostname;
+  networking.hostName = hosts.straume.hostname;
 }

+ 0 - 0
hosts/nixstation/nixos/hardware.nix → hosts/straume/nixos/hardware.nix