1
0
Fork 0

Compare commits

...

8 commits

Author SHA1 Message Date
Daniel Kempkens ba8d938f86
forgejo: Adjust local config
All checks were successful
Build / build-arm64-linux (push) Successful in 8m3s
Build / build-amd64-linux (push) Successful in 11m45s
2023-10-02 19:25:16 +02:00
Daniel Kempkens 297cb15fba
Update deps 2023-10-02 19:17:27 +02:00
Daniel Kempkens 414fb8ae48
forgejo: Switch to forgejo module 2023-10-02 19:14:00 +02:00
Daniel Kempkens aa430b6499
Update deps 2023-10-02 13:07:30 +02:00
Daniel Kempkens b0f3c0b713
Update deps 2023-10-02 12:18:22 +02:00
Daniel Kempkens a3ff4071a1
Update deps 2023-10-02 11:38:32 +02:00
Daniel Kempkens 35579f7f93
chore: Use fancy TS injections in some files 2023-10-01 23:13:47 +02:00
Daniel Kempkens a183f5252c
Update deps 2023-10-01 22:46:24 +02:00
11 changed files with 68 additions and 98 deletions

View file

@ -109,11 +109,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1695864092, "lastModified": 1696266752,
"narHash": "sha256-Hu1SkFPqO7ND95AOzBkZE2jGXSYhfZ965C03O72Kbu8=", "narHash": "sha256-wJnMDFM21+xXdsXSs6pXMElbv4YfqmQslcPApRuaYKs=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "19b62324663b6b9859caf7f335d232cf4f1f6a32", "rev": "646ee25c25fffee122a66282861f5f56ad3e0fd9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -175,29 +175,11 @@
"nixpkgs-lib": "nixpkgs-lib" "nixpkgs-lib": "nixpkgs-lib"
}, },
"locked": { "locked": {
"lastModified": 1693611461, "lastModified": 1696203690,
"narHash": "sha256-aPODl8vAgGQ0ZYFIRisxYG5MOGSkIczvu2Cd8Gb9+1Y=", "narHash": "sha256-774XMEL7VHSTLDYVkqrbl5GCdmkVKsjMs+KLM4N4t7k=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "7f53fdb7bdc5bb237da7fefef12d099e4fd611ca", "rev": "21928e6758af0a258002647d14363d5ffc85545b",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-parts_2": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib_2"
},
"locked": {
"lastModified": 1693611461,
"narHash": "sha256-aPODl8vAgGQ0ZYFIRisxYG5MOGSkIczvu2Cd8Gb9+1Y=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "7f53fdb7bdc5bb237da7fefef12d099e4fd611ca",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -343,11 +325,11 @@
}, },
"locked": { "locked": {
"dir": "contrib", "dir": "contrib",
"lastModified": 1696149571, "lastModified": 1696214733,
"narHash": "sha256-V1tK4LLi5UJ6U3rnw+cZy5uAjZhcNVnZGNIuPkv2+qo=", "narHash": "sha256-2IqDjWfqhy7MbCbFs3GDRYIpfK2usL+CYGfh6uskK/0=",
"owner": "neovim", "owner": "neovim",
"repo": "neovim", "repo": "neovim",
"rev": "9b3045103f7d56e5ccd0574dcb93e953b72d5f50", "rev": "09a17f91d0d362c6e58bfdbe3ccdeacffb0b44b9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -359,18 +341,20 @@
}, },
"nifoc-overlay": { "nifoc-overlay": {
"inputs": { "inputs": {
"flake-parts": "flake-parts_2", "flake-parts": [
"flake-parts"
],
"neovim-flake": "neovim-flake", "neovim-flake": "neovim-flake",
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
] ]
}, },
"locked": { "locked": {
"lastModified": 1696157682, "lastModified": 1696244541,
"narHash": "sha256-MXQmuVo+bOhvLzhGtJ95d3CXq4Ey21Mw5kKyzx6vx44=", "narHash": "sha256-KsHBVgAO+OA4PhPcLUKACSIUA9BkXl+nq9pPS0vsbH4=",
"ref": "refs/heads/master", "ref": "refs/heads/master",
"rev": "4a8400ed11adfd00af4d6f4380fc06dd150b3433", "rev": "870bafd0df0c7aa2701c7d7eda60d6206700d6e3",
"revCount": 508, "revCount": 511,
"type": "git", "type": "git",
"url": "https://git.kempkens.io/daniel/nix-overlay" "url": "https://git.kempkens.io/daniel/nix-overlay"
}, },
@ -433,11 +417,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1696009558, "lastModified": 1696234590,
"narHash": "sha256-/1nNL8lCF0gn38XaFyu2ufpWcBFwCDZyYUxdZkM6GxU=", "narHash": "sha256-mgOzQYTvaTT4bFopVOadlndy2RPwLy60rDjIWOGujwo=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c182df2e68bd97deb32c7e4765adfbbbcaf75b60", "rev": "f902cb49892d300ff15cb237e48aa1cad79d68c3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -450,29 +434,11 @@
"nixpkgs-lib": { "nixpkgs-lib": {
"locked": { "locked": {
"dir": "lib", "dir": "lib",
"lastModified": 1693471703, "lastModified": 1696019113,
"narHash": "sha256-0l03ZBL8P1P6z8MaSDS/MvuU8E75rVxe5eE1N6gxeTo=", "narHash": "sha256-X3+DKYWJm93DRSdC5M6K5hLqzSya9BjibtBsuARoPco=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3e52e76b70d5508f3cec70b882a29199f4d1ee85", "rev": "f5892ddac112a1e9b3612c39af1b72987ee5783a",
"type": "github"
},
"original": {
"dir": "lib",
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-lib_2": {
"locked": {
"dir": "lib",
"lastModified": 1693471703,
"narHash": "sha256-0l03ZBL8P1P6z8MaSDS/MvuU8E75rVxe5eE1N6gxeTo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "3e52e76b70d5508f3cec70b882a29199f4d1ee85",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -55,7 +55,10 @@
nifoc-overlay = { nifoc-overlay = {
url = "git+https://git.kempkens.io/daniel/nix-overlay"; url = "git+https://git.kempkens.io/daniel/nix-overlay";
inputs.nixpkgs.follows = "nixpkgs"; inputs = {
nixpkgs.follows = "nixpkgs";
flake-parts.follows = "flake-parts";
};
}; };
deploy-rs = { deploy-rs = {

View file

@ -88,7 +88,7 @@
lastAppsFile = "${config.xdg.stateHome}/nix/.apps"; lastAppsFile = "${config.xdg.stateHome}/nix/.apps";
in in
lib.hm.dag.entryAfter [ "writeBoundary" ] '' lib.hm.dag.entryAfter [ "writeBoundary" ] /* bash */ ''
last_apps=$(cat "${lastAppsFile}" 2>/dev/null || echo "") last_apps=$(cat "${lastAppsFile}" 2>/dev/null || echo "")
next_apps=$(readlink -f ${apps}/Applications/* | sort) next_apps=$(readlink -f ${apps}/Applications/* | sort)

View file

@ -99,11 +99,11 @@ in
}; };
functions = { functions = {
base64decode = '' base64decode = /* fish */ ''
echo "$argv" | base64 --decode echo "$argv" | base64 --decode
''; '';
upn = '' upn = /* fish */ ''
set -f os (uname) set -f os (uname)
switch $os switch $os
@ -117,7 +117,7 @@ in
end end
''; '';
upp = '' upp = /* fish */ ''
if not test -f ./.envrc; or rg --quiet '^use flake$' ./.envrc if not test -f ./.envrc; or rg --quiet '^use flake$' ./.envrc
nix flake update ./ -v nix flake update ./ -v
else else
@ -125,17 +125,17 @@ in
end end
''; '';
wget-browser = '' wget-browser = /* fish */ ''
set user_agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" set user_agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15"
${pkgs.wget}/bin/wget -U "$user_agent" $argv ${pkgs.wget}/bin/wget -U "$user_agent" $argv
''; '';
aria-browser = '' aria-browser = /* fish */ ''
set user_agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" set user_agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15"
${pkgs.aria2}/bin/aria2c -U "$user_agent" --file-allocation none --async-dns=false -x 2 $argv ${pkgs.aria2}/bin/aria2c -U "$user_agent" --file-allocation none --async-dns=false -x 2 $argv
''; '';
mysqld-direnv-init = '' mysqld-direnv-init = /* fish */ ''
if type -q mysql_install_db if type -q mysql_install_db
mysql_install_db --user $USER --datadir=$PWD/.direnv/mysql/data --auth-root-authentication-method=normal mysql_install_db --user $USER --datadir=$PWD/.direnv/mysql/data --auth-root-authentication-method=normal
else else
@ -144,7 +144,7 @@ in
''; '';
}; };
shellInit = '' shellInit = /* fish */ ''
# Disable greeting # Disable greeting
set fish_greeting set fish_greeting

View file

@ -59,7 +59,7 @@
includes = [ includes = [
# Private # Private
{ {
condition = "hasconfig:remote.*.url:gitea@git.kempkens.io:*/**"; condition = "hasconfig:remote.*.url:forgejo@git.kempkens.io:*/**";
contents = { contents = {
user = { user = {
signingKey = "~/.ssh/GitHub.pub"; signingKey = "~/.ssh/GitHub.pub";

View file

@ -89,7 +89,7 @@ in
])).dependencies; ])).dependencies;
}; };
in in
'' /* lua */ ''
vim.loader.enable() vim.loader.enable()
vim.opt.runtimepath:prepend("${treesitter-parsers}") vim.opt.runtimepath:prepend("${treesitter-parsers}")
@ -140,7 +140,7 @@ in
{ {
plugin = leap-nvim; plugin = leap-nvim;
config = '' config = /* fennel */ ''
(let [leap (require :leap)] (let [leap (require :leap)]
(leap.set_default_keymaps)) (leap.set_default_keymaps))
''; '';
@ -273,7 +273,7 @@ in
{ {
plugin = nvim-ts-autotag; plugin = nvim-ts-autotag;
config = '' config = /* fennel */ ''
(let [ts-autotag (require :nvim-ts-autotag)] (let [ts-autotag (require :nvim-ts-autotag)]
(ts-autotag.setup)) (ts-autotag.setup))
''; '';
@ -310,7 +310,7 @@ in
{ {
plugin = virt-column-nvim; plugin = virt-column-nvim;
config = '' config = /* fennel */ ''
(let [virt-column (require :virt-column)] (let [virt-column (require :virt-column)]
(virt-column.setup)) (virt-column.setup))
''; '';

View file

@ -118,12 +118,12 @@ in
}; };
nvim-treesitter = buildVimPlugin { nvim-treesitter = buildVimPlugin {
pname = "nvim-treesitter"; pname = "nvim-treesitter";
version = "2023-10-01"; version = "2023-10-02";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nvim-treesitter"; owner = "nvim-treesitter";
repo = "nvim-treesitter"; repo = "nvim-treesitter";
rev = "776e4d341b5416c995e74c3abbf75f9cec26aa5e"; rev = "d96c216c54cc2d48d3c66ba7f0fc3c7c5b71b3b1";
sha256 = "02pk5di7lxvbwzi2ajq7kj6rfrxd46635jccw6xf5fbxcl84cqsb"; sha256 = "0cijl6fgb8qi7n3ggcnm1jvv44fzvqfrjjdnrwhy21nvnmv8mhns";
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };
@ -162,12 +162,12 @@ in
}; };
telescope-nvim = buildVimPlugin { telescope-nvim = buildVimPlugin {
pname = "telescope.nvim"; pname = "telescope.nvim";
version = "2023-09-29"; version = "2023-10-02";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nvim-telescope"; owner = "nvim-telescope";
repo = "telescope.nvim"; repo = "telescope.nvim";
rev = "ffe90fac32122f401429b14d383137bd92a685d0"; rev = "8c69f58427f98b2ca39a90a36db830c06e30351c";
sha256 = "1wf2kq3pv98fzy12hv19jg80r9phr96j2x5qvzbqfagglc1zb3jf"; sha256 = "00hh8v7nlvw800cjvz3j86myb6m4i6irss4kylbg15ypsp5p9yx9";
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };
@ -242,12 +242,12 @@ in
}; };
nvim-lspconfig = buildVimPlugin { nvim-lspconfig = buildVimPlugin {
pname = "nvim-lspconfig"; pname = "nvim-lspconfig";
version = "2023-10-01"; version = "2023-10-02";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "neovim"; owner = "neovim";
repo = "nvim-lspconfig"; repo = "nvim-lspconfig";
rev = "eb1b53162755888ff75e495797071644d983bff7"; rev = "ac478757efcde1ac346f7044ab774e7cbb482533";
sha256 = "04kgsf3rhr0wk3vyx6lawlxj5icvaryx925flh72f234vkhigmq2"; sha256 = "05nladrq3i3flja17pwfy3bqplys17s5ydyfrnd6rpk6fr4pcdjl";
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };
@ -528,12 +528,12 @@ in
}; };
indent-blankline-nvim = buildVimPlugin { indent-blankline-nvim = buildVimPlugin {
pname = "indent-blankline.nvim"; pname = "indent-blankline.nvim";
version = "2023-10-01"; version = "2023-10-02";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lukas-reineke"; owner = "lukas-reineke";
repo = "indent-blankline.nvim"; repo = "indent-blankline.nvim";
rev = "3d26bc7ab0e8dfddc0f40c840a8f925dddc2fef6"; rev = "ce2e8e410bc8b46a6938bfa3520bc6b85ca8a743";
sha256 = "1p3bxdrj2xibyqw37b1247sz5nqx460d3lr4py3fn0cdgrf3420s"; sha256 = "0sb1cfp8hx3qq3lr89afc60q0qs20yka7jcimdjh81qnqz2ws6i4";
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };
@ -550,12 +550,12 @@ in
}; };
toggleterm-nvim = buildVimPlugin { toggleterm-nvim = buildVimPlugin {
pname = "toggleterm.nvim"; pname = "toggleterm.nvim";
version = "2023-09-25"; version = "2023-10-02";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "akinsho"; owner = "akinsho";
repo = "toggleterm.nvim"; repo = "toggleterm.nvim";
rev = "61e8ad370d4da5d84c77e31671027bc094ac06ca"; rev = "c80844fd52ba76f48fabf83e2b9f9b93273f418d";
sha256 = "0cwqlaqvbnw4ncm717v052mzb943jcynrfpx38c8aspzjqybdcpj"; sha256 = "19rbq39m7c1v9yrfmlwmfmxgv5d9bwcjbgjdp3cin409fnl4rv6b";
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };
@ -572,12 +572,12 @@ in
}; };
gitsigns-nvim = buildVimPlugin { gitsigns-nvim = buildVimPlugin {
pname = "gitsigns.nvim"; pname = "gitsigns.nvim";
version = "2023-10-01"; version = "2023-10-02";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lewis6991"; owner = "lewis6991";
repo = "gitsigns.nvim"; repo = "gitsigns.nvim";
rev = "19654d963e4f1d6d6543f38ab9802092393508c2"; rev = "b14b9fba7d085ed8c11392aa51e575de84822bb1";
sha256 = "1w2kjiiz5ac0qkp6q33gk70lghahxm41f0hjf6mkbk0x74aqj7ks"; sha256 = "0mw9fb9mgvh6hfc18n871c3kbdwhyms0jxpj07glxhxb3qrw34yg";
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };

View file

@ -14,7 +14,7 @@
helper_binaries_dir = ["${config.home.profileDirectory}/bin"] helper_binaries_dir = ["${config.home.profileDirectory}/bin"]
''; '';
programs.fish.functions.podman = '' programs.fish.functions.podman = /* fish */ ''
fish -c "set -e SSH_AUTH_SOCK; ${config.home.profileDirectory}/bin/podman $argv" fish -c "set -e SSH_AUTH_SOCK; ${config.home.profileDirectory}/bin/podman $argv"
''; '';
} }

View file

@ -18,7 +18,7 @@
"git.kempkens.io" = { "git.kempkens.io" = {
port = 22; port = 22;
user = "gitea"; user = "forgejo";
identityFile = "~/.ssh/GitHub.pub"; identityFile = "~/.ssh/GitHub.pub";
identitiesOnly = true; identitiesOnly = true;
compression = true; compression = true;

View file

@ -16,7 +16,7 @@ in
package = wezterm-pkg; package = wezterm-pkg;
extraConfig = '' extraConfig = /* lua */ ''
_G.shells = { _G.shells = {
bash = '${pkgs.bash.outPath}/bin/bash', bash = '${pkgs.bash.outPath}/bin/bash',
fish = '${pkgs.fish.outPath}/bin/fish', fish = '${pkgs.fish.outPath}/bin/fish',
@ -47,8 +47,8 @@ in
# Change PWD to config directory # Change PWD to config directory
cd "$config_store_path" cd "$config_store_path"
# Init # Config
echo "Compiling init.fnl ..." echo "Compiling config.fnl ..."
$fennel "$config_store_path/config.fnl" > "$out/config.lua" $fennel "$config_store_path/config.fnl" > "$out/config.lua"
stylua "$out/" stylua "$out/"

View file

@ -5,9 +5,8 @@ let
in in
{ {
services = { services = {
gitea = { forgejo = {
enable = true; enable = true;
package = pkgs.forgejo;
stateDir = "/var/lib/forgejo"; stateDir = "/var/lib/forgejo";
@ -17,9 +16,11 @@ in
lfs.enable = true; lfs.enable = true;
appName = "kempkens.io Forge";
settings = { settings = {
DEFAULT = {
APP_NAME = "kempkens.io Forge";
};
server = { server = {
PROTOCOL = "http+unix"; PROTOCOL = "http+unix";
DOMAIN = fqdn; DOMAIN = fqdn;
@ -67,7 +68,7 @@ in
locations."/" = { locations."/" = {
recommendedProxySettings = true; recommendedProxySettings = true;
proxyPass = "http://unix:/run/gitea/gitea.sock"; proxyPass = "http://unix:/run/forgejo/forgejo.sock";
}; };
}; };
}; };