mirror of
https://github.com/Alexandre1a/NixOSDots.git
synced 2026-03-10 00:09:46 +01:00
Added my gitea SSH host, renamed the ssh key
This commit is contained in:
parent
0c24f90379
commit
88aadf2f22
61
dev-flakes/web/flake.lock
generated
Normal file
61
dev-flakes/web/flake.lock
generated
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"flake-utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1771848320,
|
||||||
|
"narHash": "sha256-0MAd+0mun3K/Ns8JATeHT1sX28faLII5hVLq0L3BdZU=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "2fc6539b481e1d2569f25f8799236694180c0993",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
description = "General C++ dev enviroment";
|
description = "Web dev + Go";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
@ -15,34 +15,26 @@
|
|||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
packages.default = pkgs.stdenv.mkDerivation {
|
devShells.default = pkgs.mkShell {
|
||||||
pname = "myapp";
|
# In the dev shell, you get more tools than just what's needed to build
|
||||||
version = "0.1.0";
|
|
||||||
src = self;
|
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [ cmake ninja ];
|
|
||||||
buildInputs = with pkgs; [ ];
|
|
||||||
};
|
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell {
|
|
||||||
name = "cpp-dev";
|
|
||||||
|
|
||||||
# In the dev shell, you get more tools than just what's needed to build
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
go
|
||||||
|
gopls
|
||||||
|
gotools
|
||||||
|
air
|
||||||
|
sqlite
|
||||||
|
sqlitebrowser
|
||||||
gcc
|
gcc
|
||||||
clang
|
|
||||||
cmake
|
|
||||||
ninja
|
|
||||||
gdb
|
|
||||||
valgrind
|
|
||||||
clang-tools
|
|
||||||
ccache
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Variables
|
||||||
|
CGO_ENABLED = "1";
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
echo "C++ loaded"
|
echo "Go loaded"
|
||||||
export CC="ccache gcc"
|
echo "air -> Hot reload"
|
||||||
export CXX="ccache g++"
|
echo "sqlite3 app.db -> Inspect the DataBase"
|
||||||
|
export PORT="8080"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
@ -5,7 +5,9 @@
|
|||||||
startAgent = true;
|
startAgent = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
Host github.com
|
Host github.com
|
||||||
IdentityFile ~/.ssh/github
|
IdentityFile ~/.ssh/git
|
||||||
|
Host git.alexdelcamp.fr
|
||||||
|
IdentityFile ~/.ssh/git
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user