1
0
Fork 0

Compare commits

..

No commits in common. "ba8d938f860d8cb8e04d0152c848db03104dd9b2" and "4ff6010696b575d2c63e527c40da0849a1144c2d" have entirely different histories.

11 changed files with 98 additions and 68 deletions

View file

@ -109,11 +109,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1696266752, "lastModified": 1695864092,
"narHash": "sha256-wJnMDFM21+xXdsXSs6pXMElbv4YfqmQslcPApRuaYKs=", "narHash": "sha256-Hu1SkFPqO7ND95AOzBkZE2jGXSYhfZ965C03O72Kbu8=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "646ee25c25fffee122a66282861f5f56ad3e0fd9", "rev": "19b62324663b6b9859caf7f335d232cf4f1f6a32",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -175,11 +175,29 @@
"nixpkgs-lib": "nixpkgs-lib" "nixpkgs-lib": "nixpkgs-lib"
}, },
"locked": { "locked": {
"lastModified": 1696203690, "lastModified": 1693611461,
"narHash": "sha256-774XMEL7VHSTLDYVkqrbl5GCdmkVKsjMs+KLM4N4t7k=", "narHash": "sha256-aPODl8vAgGQ0ZYFIRisxYG5MOGSkIczvu2Cd8Gb9+1Y=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "21928e6758af0a258002647d14363d5ffc85545b", "rev": "7f53fdb7bdc5bb237da7fefef12d099e4fd611ca",
"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": {
@ -325,11 +343,11 @@
}, },
"locked": { "locked": {
"dir": "contrib", "dir": "contrib",
"lastModified": 1696214733, "lastModified": 1696149571,
"narHash": "sha256-2IqDjWfqhy7MbCbFs3GDRYIpfK2usL+CYGfh6uskK/0=", "narHash": "sha256-V1tK4LLi5UJ6U3rnw+cZy5uAjZhcNVnZGNIuPkv2+qo=",
"owner": "neovim", "owner": "neovim",
"repo": "neovim", "repo": "neovim",
"rev": "09a17f91d0d362c6e58bfdbe3ccdeacffb0b44b9", "rev": "9b3045103f7d56e5ccd0574dcb93e953b72d5f50",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -341,20 +359,18 @@
}, },
"nifoc-overlay": { "nifoc-overlay": {
"inputs": { "inputs": {
"flake-parts": [ "flake-parts": "flake-parts_2",
"flake-parts"
],
"neovim-flake": "neovim-flake", "neovim-flake": "neovim-flake",
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
] ]
}, },
"locked": { "locked": {
"lastModified": 1696244541, "lastModified": 1696157682,
"narHash": "sha256-KsHBVgAO+OA4PhPcLUKACSIUA9BkXl+nq9pPS0vsbH4=", "narHash": "sha256-MXQmuVo+bOhvLzhGtJ95d3CXq4Ey21Mw5kKyzx6vx44=",
"ref": "refs/heads/master", "ref": "refs/heads/master",
"rev": "870bafd0df0c7aa2701c7d7eda60d6206700d6e3", "rev": "4a8400ed11adfd00af4d6f4380fc06dd150b3433",
"revCount": 511, "revCount": 508,
"type": "git", "type": "git",
"url": "https://git.kempkens.io/daniel/nix-overlay" "url": "https://git.kempkens.io/daniel/nix-overlay"
}, },
@ -417,11 +433,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1696234590, "lastModified": 1696009558,
"narHash": "sha256-mgOzQYTvaTT4bFopVOadlndy2RPwLy60rDjIWOGujwo=", "narHash": "sha256-/1nNL8lCF0gn38XaFyu2ufpWcBFwCDZyYUxdZkM6GxU=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "f902cb49892d300ff15cb237e48aa1cad79d68c3", "rev": "c182df2e68bd97deb32c7e4765adfbbbcaf75b60",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -434,11 +450,29 @@
"nixpkgs-lib": { "nixpkgs-lib": {
"locked": { "locked": {
"dir": "lib", "dir": "lib",
"lastModified": 1696019113, "lastModified": 1693471703,
"narHash": "sha256-X3+DKYWJm93DRSdC5M6K5hLqzSya9BjibtBsuARoPco=", "narHash": "sha256-0l03ZBL8P1P6z8MaSDS/MvuU8E75rVxe5eE1N6gxeTo=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "f5892ddac112a1e9b3612c39af1b72987ee5783a", "rev": "3e52e76b70d5508f3cec70b882a29199f4d1ee85",
"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,10 +55,7 @@
nifoc-overlay = { nifoc-overlay = {
url = "git+https://git.kempkens.io/daniel/nix-overlay"; url = "git+https://git.kempkens.io/daniel/nix-overlay";
inputs = { inputs.nixpkgs.follows = "nixpkgs";
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" ] /* bash */ '' lib.hm.dag.entryAfter [ "writeBoundary" ] ''
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 = /* fish */ '' base64decode = ''
echo "$argv" | base64 --decode echo "$argv" | base64 --decode
''; '';
upn = /* fish */ '' upn = ''
set -f os (uname) set -f os (uname)
switch $os switch $os
@ -117,7 +117,7 @@ in
end end
''; '';
upp = /* fish */ '' upp = ''
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 = /* fish */ '' wget-browser = ''
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 = /* fish */ '' aria-browser = ''
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 = /* fish */ '' mysqld-direnv-init = ''
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 = /* fish */ '' shellInit = ''
# Disable greeting # Disable greeting
set fish_greeting set fish_greeting

View file

@ -59,7 +59,7 @@
includes = [ includes = [
# Private # Private
{ {
condition = "hasconfig:remote.*.url:forgejo@git.kempkens.io:*/**"; condition = "hasconfig:remote.*.url:gitea@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 = /* fennel */ '' config = ''
(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 = /* fennel */ '' config = ''
(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 = /* fennel */ '' config = ''
(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-02"; version = "2023-10-01";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nvim-treesitter"; owner = "nvim-treesitter";
repo = "nvim-treesitter"; repo = "nvim-treesitter";
rev = "d96c216c54cc2d48d3c66ba7f0fc3c7c5b71b3b1"; rev = "776e4d341b5416c995e74c3abbf75f9cec26aa5e";
sha256 = "0cijl6fgb8qi7n3ggcnm1jvv44fzvqfrjjdnrwhy21nvnmv8mhns"; sha256 = "02pk5di7lxvbwzi2ajq7kj6rfrxd46635jccw6xf5fbxcl84cqsb";
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };
@ -162,12 +162,12 @@ in
}; };
telescope-nvim = buildVimPlugin { telescope-nvim = buildVimPlugin {
pname = "telescope.nvim"; pname = "telescope.nvim";
version = "2023-10-02"; version = "2023-09-29";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nvim-telescope"; owner = "nvim-telescope";
repo = "telescope.nvim"; repo = "telescope.nvim";
rev = "8c69f58427f98b2ca39a90a36db830c06e30351c"; rev = "ffe90fac32122f401429b14d383137bd92a685d0";
sha256 = "00hh8v7nlvw800cjvz3j86myb6m4i6irss4kylbg15ypsp5p9yx9"; sha256 = "1wf2kq3pv98fzy12hv19jg80r9phr96j2x5qvzbqfagglc1zb3jf";
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };
@ -242,12 +242,12 @@ in
}; };
nvim-lspconfig = buildVimPlugin { nvim-lspconfig = buildVimPlugin {
pname = "nvim-lspconfig"; pname = "nvim-lspconfig";
version = "2023-10-02"; version = "2023-10-01";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "neovim"; owner = "neovim";
repo = "nvim-lspconfig"; repo = "nvim-lspconfig";
rev = "ac478757efcde1ac346f7044ab774e7cbb482533"; rev = "eb1b53162755888ff75e495797071644d983bff7";
sha256 = "05nladrq3i3flja17pwfy3bqplys17s5ydyfrnd6rpk6fr4pcdjl"; sha256 = "04kgsf3rhr0wk3vyx6lawlxj5icvaryx925flh72f234vkhigmq2";
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-02"; version = "2023-10-01";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lukas-reineke"; owner = "lukas-reineke";
repo = "indent-blankline.nvim"; repo = "indent-blankline.nvim";
rev = "ce2e8e410bc8b46a6938bfa3520bc6b85ca8a743"; rev = "3d26bc7ab0e8dfddc0f40c840a8f925dddc2fef6";
sha256 = "0sb1cfp8hx3qq3lr89afc60q0qs20yka7jcimdjh81qnqz2ws6i4"; sha256 = "1p3bxdrj2xibyqw37b1247sz5nqx460d3lr4py3fn0cdgrf3420s";
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };
@ -550,12 +550,12 @@ in
}; };
toggleterm-nvim = buildVimPlugin { toggleterm-nvim = buildVimPlugin {
pname = "toggleterm.nvim"; pname = "toggleterm.nvim";
version = "2023-10-02"; version = "2023-09-25";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "akinsho"; owner = "akinsho";
repo = "toggleterm.nvim"; repo = "toggleterm.nvim";
rev = "c80844fd52ba76f48fabf83e2b9f9b93273f418d"; rev = "61e8ad370d4da5d84c77e31671027bc094ac06ca";
sha256 = "19rbq39m7c1v9yrfmlwmfmxgv5d9bwcjbgjdp3cin409fnl4rv6b"; sha256 = "0cwqlaqvbnw4ncm717v052mzb943jcynrfpx38c8aspzjqybdcpj";
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };
@ -572,12 +572,12 @@ in
}; };
gitsigns-nvim = buildVimPlugin { gitsigns-nvim = buildVimPlugin {
pname = "gitsigns.nvim"; pname = "gitsigns.nvim";
version = "2023-10-02"; version = "2023-10-01";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lewis6991"; owner = "lewis6991";
repo = "gitsigns.nvim"; repo = "gitsigns.nvim";
rev = "b14b9fba7d085ed8c11392aa51e575de84822bb1"; rev = "19654d963e4f1d6d6543f38ab9802092393508c2";
sha256 = "0mw9fb9mgvh6hfc18n871c3kbdwhyms0jxpj07glxhxb3qrw34yg"; sha256 = "1w2kjiiz5ac0qkp6q33gk70lghahxm41f0hjf6mkbk0x74aqj7ks";
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 = /* fish */ '' programs.fish.functions.podman = ''
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 = "forgejo"; user = "gitea";
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 = /* lua */ '' extraConfig = ''
_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"
# Config # Init
echo "Compiling config.fnl ..." echo "Compiling init.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,8 +5,9 @@ let
in in
{ {
services = { services = {
forgejo = { gitea = {
enable = true; enable = true;
package = pkgs.forgejo;
stateDir = "/var/lib/forgejo"; stateDir = "/var/lib/forgejo";
@ -16,11 +17,9 @@ in
lfs.enable = true; lfs.enable = true;
settings = { appName = "kempkens.io Forge";
DEFAULT = {
APP_NAME = "kempkens.io Forge";
};
settings = {
server = { server = {
PROTOCOL = "http+unix"; PROTOCOL = "http+unix";
DOMAIN = fqdn; DOMAIN = fqdn;
@ -68,7 +67,7 @@ in
locations."/" = { locations."/" = {
recommendedProxySettings = true; recommendedProxySettings = true;
proxyPass = "http://unix:/run/forgejo/forgejo.sock"; proxyPass = "http://unix:/run/gitea/gitea.sock";
}; };
}; };
}; };