This commit is contained in:
2025-11-17 17:13:29 +00:00
parent 583885d79b
commit 6c904da72b
6 changed files with 71 additions and 19 deletions

View File

@@ -70,3 +70,15 @@ mr_sync:
mr_add_all:
mr run git add --all
# Publish current directory to GitHub
[no-cd]
GH_publish:
echo "📦 Publishing to GitHub..."
test -d .git || git init
git add .
git commit -m "init" || true
gh repo create {{file_name(invocation_directory())}} --public --source=. --push --disable-wiki || true
git remote add origin git@github.com:$(gh api user -q .login)/{{file_name(invocation_directory())}}.git || true
git push -u origin $(git branch --show-current) || git push -u origin $(git branch --show-current) --force
echo "✅ Published to: https://github.com/$(gh api user -q .login)/{{file_name(invocation_directory())}}"

63
flake.lock generated
View File

@@ -177,6 +177,24 @@
"type": "github"
}
},
"my-utils": {
"inputs": {
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1763397360,
"narHash": "sha256-RkWXx0V5IqqymwTr5WuTg+WzD5jna6ShXohPfEKLOM0=",
"owner": "sstent",
"repo": "MyUtils",
"rev": "cabdc9b8ed731b77c6dfc63d433007ffd9cdecce",
"type": "github"
},
"original": {
"owner": "sstent",
"repo": "MyUtils",
"type": "github"
}
},
"nix-ld-rs": {
"inputs": {
"flake-compat": "flake-compat",
@@ -201,7 +219,7 @@
},
"nix-vscode-extensions": {
"inputs": {
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1763171608,
@@ -235,7 +253,7 @@
"nixos-wsl": {
"inputs": {
"flake-compat": "flake-compat_2",
"nixpkgs": "nixpkgs_2"
"nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1762891505,
@@ -254,17 +272,17 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1759770925,
"narHash": "sha256-CZwkCtzTNclqlhuwDsVtGoRumTpqCUK0xSnFIMgd8ls=",
"owner": "nixos",
"lastModified": 1763283776,
"narHash": "sha256-Y7TDFPK4GlqrKrivOcsHG8xSGqQx3A6c+i7novT85Uk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "674c2b09c59a220204350ced584cadaacee30038",
"rev": "50a96edd8d0db6cc8db57dab6bb6d6ee1f3dc49a",
"type": "github"
},
"original": {
"owner": "nixos",
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"rev": "674c2b09c59a220204350ced584cadaacee30038",
"type": "github"
}
},
@@ -285,6 +303,22 @@
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1759770925,
"narHash": "sha256-CZwkCtzTNclqlhuwDsVtGoRumTpqCUK0xSnFIMgd8ls=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "674c2b09c59a220204350ced584cadaacee30038",
"type": "github"
},
"original": {
"owner": "nixos",
"repo": "nixpkgs",
"rev": "674c2b09c59a220204350ced584cadaacee30038",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1761173472,
"narHash": "sha256-m9W0dYXflzeGgKNravKJvTMR4Qqa2MVD11AwlGMufeE=",
@@ -300,7 +334,7 @@
"type": "github"
}
},
"nixpkgs_3": {
"nixpkgs_4": {
"locked": {
"lastModified": 1763049705,
"narHash": "sha256-A5LS0AJZ1yDPTa2fHxufZN++n8MCmtgrJDtxFxrH4S8=",
@@ -316,7 +350,7 @@
"type": "github"
}
},
"nixpkgs_4": {
"nixpkgs_5": {
"locked": {
"lastModified": 1762361079,
"narHash": "sha256-lz718rr1BDpZBYk7+G8cE6wee3PiBUpn8aomG/vLLiY=",
@@ -332,7 +366,7 @@
"type": "github"
}
},
"nixpkgs_5": {
"nixpkgs_6": {
"locked": {
"lastModified": 1682134069,
"narHash": "sha256-TnI/ZXSmRxQDt2sjRYK/8j8iha4B4zP2cnQCZZ3vp7k=",
@@ -353,11 +387,12 @@
"home-manager": "home-manager",
"ignore": "ignore",
"library": "library",
"my-utils": "my-utils",
"nix-ld-rs": "nix-ld-rs",
"nix-vscode-extensions": "nix-vscode-extensions",
"nixos-hardware": "nixos-hardware",
"nixos-wsl": "nixos-wsl",
"nixpkgs": "nixpkgs_3",
"nixpkgs": "nixpkgs_4",
"nixpkgs-unstable": "nixpkgs-unstable",
"sops-nix": "sops-nix",
"utils": "utils",
@@ -366,7 +401,7 @@
},
"sops-nix": {
"inputs": {
"nixpkgs": "nixpkgs_4"
"nixpkgs": "nixpkgs_5"
},
"locked": {
"lastModified": 1763069729,
@@ -463,7 +498,7 @@
"vscode-server": {
"inputs": {
"flake-utils": "flake-utils_4",
"nixpkgs": "nixpkgs_5"
"nixpkgs": "nixpkgs_6"
},
"locked": {
"lastModified": 1753541826,

View File

@@ -16,8 +16,8 @@
home-manager.url = "github:nix-community/home-manager/release-25.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
# TODO: Add any other flake you might need
# hardware.url = "github:nixos/nixos-hardware";
my-utils.url = "github:sstent/MyUtils";
#VSCode fix
vscode-server.url = "github:nix-community/nixos-vscode-server";

View File

@@ -5,7 +5,9 @@
config,
outputs,
...
}: {
}: let
my-utils = inputs.my-utils.packages.${pkgs.system}.default;
in {
imports =
[
# ./beets.nix
@@ -60,6 +62,8 @@
programs = {
home-manager.enable = true;
git.enable = true;
gh.enable = true;
};
};
}

View File

@@ -63,6 +63,7 @@
gnumake
unstable.keybase
# my.prometheus-api-client
my-utils
];
@@ -88,8 +89,7 @@
historyControl = ["ignorespace"];
shellOptions = ["histappend"];
sessionVariables = {
DOCKER_HOST = "tcp://192.168.1.223:2375";
NOMAD_ADDR = "http://192.168.1.250:4646";
NOMAD_ADDR = "http://192.168.4.250:4646";
TERM = "xterm-256color";
ANSIBLE_HOST_KEY_CHECKING = "False";
HSTR_CONFIG = "hicolor";

View File

@@ -19,6 +19,7 @@
)
];
keybase = final.unstable.keybase;
my-utils = inputs.my-utils.packages.${final.system}.default;
};
# Add VS Code extensions overlay