From 80fc73a9a3cddee3d1875a96e197fab79831f35f Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Sat, 27 Sep 2025 23:57:13 -0600 Subject: [PATCH] tailscale + sunshine + lint --- flake.lock | 97 ++++++++++++++++--- hosts/workstation/configuration.nix | 7 ++ .../servers/gitea-actions-runners/nixos.nix | 4 +- modules/shell/tools.nix | 2 +- 4 files changed, 92 insertions(+), 18 deletions(-) diff --git a/flake.lock b/flake.lock index af99a54..2de51ce 100644 --- a/flake.lock +++ b/flake.lock @@ -286,6 +286,24 @@ "type": "github" } }, + "flake-utils": { + "inputs": { + "systems": "systems_3" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "fromYaml": { "flake": false, "locked": { @@ -648,20 +666,21 @@ "inputs": { "nixpkgs": [ "nixpkgs" - ] + ], + "sudoku-solver": "sudoku-solver" }, "locked": { - "lastModified": 1758168516, - "narHash": "sha256-9ao8IFGmkgNlu3Tmp3qRucWdYYwUfvk51a22tE8ENcI=", + "lastModified": 1758693316, + "narHash": "sha256-cy8CdWOyDJdIe2gVPP3mtRIYXwv8m08HhLet8eSyrHM=", "ref": "refs/heads/master", - "rev": "4f5049f3ab97d68e82594abe9968de2a6db44b37", - "revCount": 103, + "rev": "64a81ca78d03816ddcbbdc8a7b6186c975c6653a", + "revCount": 104, "type": "git", - "url": "ssh://gitea@git.servidos.lat/lebubu/scripts.git" + "url": "https://git.servidos.lat/lebubu/scripts.git" }, "original": { "type": "git", - "url": "ssh://gitea@git.servidos.lat/lebubu/scripts.git" + "url": "https://git.servidos.lat/lebubu/scripts.git" } }, "nix-gaming": { @@ -687,16 +706,16 @@ }, "nixpkgs": { "locked": { - "lastModified": 1758346548, - "narHash": "sha256-afXE7AJ7MY6wY1pg/Y6UPHNYPy5GtUKeBkrZZ/gC71E=", - "owner": "nixos", + "lastModified": 1743576891, + "narHash": "sha256-vXiKURtntURybE6FMNFAVpRPr8+e8KoLPrYs9TGuAKc=", + "owner": "NixOS", "repo": "nixpkgs", - "rev": "b2a3852bd078e68dd2b3dfa8c00c67af1f0a7d20", + "rev": "44a69ed688786e98a101f02b712c313f1ade37ab", "type": "github" }, "original": { - "owner": "nixos", - "ref": "nixos-25.05", + "owner": "NixOS", + "ref": "nixos-24.11", "repo": "nixpkgs", "type": "github" } @@ -766,6 +785,22 @@ "type": "github" } }, + "nixpkgs_2": { + "locked": { + "lastModified": 1758346548, + "narHash": "sha256-afXE7AJ7MY6wY1pg/Y6UPHNYPy5GtUKeBkrZZ/gC71E=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "b2a3852bd078e68dd2b3dfa8c00c67af1f0a7d20", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-25.05", + "repo": "nixpkgs", + "type": "github" + } + }, "nixtendo-switch": { "inputs": { "flake-parts": "flake-parts_2", @@ -864,7 +899,7 @@ "hyprland": "hyprland", "jawz-scripts": "jawz-scripts", "nix-gaming": "nix-gaming", - "nixpkgs": "nixpkgs", + "nixpkgs": "nixpkgs_2", "nixpkgs-small": "nixpkgs-small", "nixpkgs-unstable": "nixpkgs-unstable", "nixtendo-switch": "nixtendo-switch", @@ -908,7 +943,7 @@ "nixpkgs" ], "nur": "nur_2", - "systems": "systems_3", + "systems": "systems_4", "tinted-foot": "tinted-foot", "tinted-kitty": "tinted-kitty", "tinted-schemes": "tinted-schemes", @@ -930,6 +965,23 @@ "type": "github" } }, + "sudoku-solver": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + }, + "locked": { + "path": "./src/sudoku-hs", + "type": "path" + }, + "original": { + "path": "./src/sudoku-hs", + "type": "path" + }, + "parent": [ + "jawz-scripts" + ] + }, "systems": { "locked": { "lastModified": 1681028828, @@ -975,6 +1027,21 @@ "type": "github" } }, + "systems_4": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "tinted-foot": { "flake": false, "locked": { diff --git a/hosts/workstation/configuration.nix b/hosts/workstation/configuration.nix index bd8defa..e1cbb4f 100644 --- a/hosts/workstation/configuration.nix +++ b/hosts/workstation/configuration.nix @@ -149,5 +149,12 @@ in acceleration = "cuda"; models = "/srv/ai/ollama"; }; + sunshine = { + enable = true; + autoStart = true; + capSysAdmin = true; + openFirewall = true; + }; + tailscale.enable = true; }; } diff --git a/modules/servers/gitea-actions-runners/nixos.nix b/modules/servers/gitea-actions-runners/nixos.nix index 1f089a8..9e09b9d 100644 --- a/modules/servers/gitea-actions-runners/nixos.nix +++ b/modules/servers/gitea-actions-runners/nixos.nix @@ -24,8 +24,8 @@ in gitMinimal nix attic-client - nodejs # Required for GitHub Actions - openssh # Required for SSH git operations + nodejs # Required for GitHub Actions + openssh # Required for SSH git operations ; }; }; diff --git a/modules/shell/tools.nix b/modules/shell/tools.nix index aff56c8..22622e6 100644 --- a/modules/shell/tools.nix +++ b/modules/shell/tools.nix @@ -39,7 +39,7 @@ }; }; bat = { - enable = false; + enable = true; config.pager = "less -FR"; extraPackages = builtins.attrValues { inherit (pkgs.bat-extras)