mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 10:10:45 -06:00
Compare commits
1 commit
f973420f29
...
180b97e5b3
Author | SHA1 | Date | |
---|---|---|---|
180b97e5b3 |
6 changed files with 22 additions and 181 deletions
20
flake.lock
20
flake.lock
|
@ -240,11 +240,11 @@
|
|||
"zig": "zig"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731706414,
|
||||
"narHash": "sha256-9Er1h1w6lXg6hQJnfLVacs6e+naamMyRPKijdBt8gFA=",
|
||||
"lastModified": 1731606318,
|
||||
"narHash": "sha256-JXgJTl6qK8b7+g9ORH94fZ0sLCwebn8tkpxy1ZG0agA=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "7dbcde72863a09405bf456fcfc41f878330a64f9",
|
||||
"revCount": 7987,
|
||||
"rev": "4853597cd9829e622be2c3628dc748407c27c423",
|
||||
"revCount": 7968,
|
||||
"type": "git",
|
||||
"url": "ssh://git@github.com/ghostty-org/ghostty"
|
||||
},
|
||||
|
@ -615,11 +615,11 @@
|
|||
"treefmt-nix": "treefmt-nix"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731682758,
|
||||
"narHash": "sha256-o54e8oNPPNmU7zHm3uTvsbbQLi7EKX3S6EEndXFG594=",
|
||||
"lastModified": 1731565875,
|
||||
"narHash": "sha256-jN6HcMNVgWPE++8vNQIyerugFDRWG1ffFCORK/vpCUs=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nix-eval-jobs",
|
||||
"rev": "d926bcd5206c0b7afe47bed92557c8cd5e882b36",
|
||||
"rev": "f2ccb7e2d80601fb43807c36f14703f2342420f3",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -745,11 +745,11 @@
|
|||
"nixpkgs": "nixpkgs_6"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731684610,
|
||||
"narHash": "sha256-rfb93JFID/fYO7h0Yhsot6TjbUgtEJMl6Qk212cVdOY=",
|
||||
"lastModified": 1731645556,
|
||||
"narHash": "sha256-i27WZwS0f18v+5vODBDrnO5GVlzszseDBXcLQiYr5Yo=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs-wayland",
|
||||
"rev": "a3fc86160dba0a9160716cf6f1d4ff4da7a53085",
|
||||
"rev": "3a7690c5fe0ecfceeddbf09f8642dca424d29793",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -1,71 +0,0 @@
|
|||
|
||||
elizabeth-and-daylin.com {
|
||||
reverse_proxy http://localhost:4321
|
||||
}
|
||||
|
||||
elizabeth.dayl.in, www.elizabeth-and-daylin.com {
|
||||
redir https://elizabeth-and-daylin.com{uri} permanent
|
||||
}
|
||||
|
||||
git.dayl.in {
|
||||
reverse_proxy http://localhost:3000
|
||||
}
|
||||
|
||||
gts.dayl.in {
|
||||
# Optional, but recommended, compress the traffic using proper protocols
|
||||
encode zstd gzip
|
||||
|
||||
# TODO: change port?
|
||||
# The actual proxy configuration to port 8080 (unless you've chosen another port number)
|
||||
reverse_proxy * http://localhost:3758 {
|
||||
# Flush immediatly, to prevent buffered response to the client
|
||||
flush_interval -1
|
||||
}
|
||||
}
|
||||
|
||||
# not currently a running service on algiz
|
||||
# (caddy-common) {
|
||||
# encode gzip
|
||||
# header {
|
||||
# -Server
|
||||
# Strict-Transport-Security "max-age=31536000; include-subdomains;"
|
||||
# X-XSS-Protection "1; mode=block"
|
||||
# X-Frame-Options "DENY"
|
||||
# X-Content-Type-Options nosniff
|
||||
# # Referrer-Policy no-referrer-when-downgrade
|
||||
# X-Robots-Tag "none"
|
||||
# }
|
||||
# }
|
||||
#
|
||||
# lemmy.dayl.in {
|
||||
# import caddy-common
|
||||
# reverse_proxy http://lemmy-ui:1234
|
||||
#
|
||||
# @lemmy {
|
||||
# path /api/*
|
||||
# path /pictrs/*
|
||||
# path /feeds/*
|
||||
# path /nodeinfo/*
|
||||
# path /.well-known/*
|
||||
# }
|
||||
#
|
||||
# @lemmy-hdr {
|
||||
# header Accept application/*
|
||||
# }
|
||||
#
|
||||
# handle @lemmy {
|
||||
# reverse_proxy http://lemmy:8536
|
||||
# }
|
||||
#
|
||||
# handle @lemmy-hdr {
|
||||
# reverse_proxy http://lemmy:8536
|
||||
# }
|
||||
#
|
||||
# @lemmy-post {
|
||||
# method POST
|
||||
# }
|
||||
#
|
||||
# handle @lemmy-post {
|
||||
# reverse_proxy http://lemmy:8536
|
||||
# }
|
||||
# }
|
|
@ -1,68 +0,0 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Attic Binary Cache</title>
|
||||
<style>
|
||||
.cursor {
|
||||
display: inline-block;
|
||||
background-color: black;
|
||||
animation-name: cursor;
|
||||
animation-duration: 0.8s;
|
||||
animation-iteration-count: infinite;
|
||||
}
|
||||
@keyframes cursor {
|
||||
0% {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
20% {
|
||||
background-color: #555;
|
||||
}
|
||||
50% {
|
||||
background-color: #555;
|
||||
}
|
||||
60% {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
100% {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
}
|
||||
/* https://stackoverflow.com/a/13356401 */
|
||||
body {
|
||||
background-color: #1e1e2e;
|
||||
}
|
||||
pre {
|
||||
color: #f5e0dc;
|
||||
}
|
||||
#box {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
|
||||
margin: auto;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="box">
|
||||
<pre>
|
||||
┏━━━━━━━━━━━━━━━━┑
|
||||
┃┏━━━ @ ━━━ @ ━━┓┃
|
||||
┃┃ ┃┃
|
||||
┃┃$ attic push <div class="cursor"> </div>┃┃
|
||||
┃┃ ┃┃
|
||||
┃┗━━━ ╰─────╯ ━━┛┃
|
||||
┗━━━━━━━━━━━━━━━━┛
|
||||
╲ ############### ╲
|
||||
╲ ############### ╲
|
||||
╲ ############### ╲
|
||||
━━━━━━━━━━━━━━━━━━
|
||||
</pre>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -4,6 +4,5 @@
|
|||
(writeShellScriptBin "gitea" ''
|
||||
ssh -p 2222 -o StrictHostKeyChecking=no git@127.0.0.1 "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"
|
||||
'')
|
||||
jujutsu
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
{ pkgs, enabled, ... }:
|
||||
let
|
||||
atticPort = "5656";
|
||||
static = pkgs.runCommandLocal "static-files" { } ''
|
||||
mkdir $out
|
||||
cp ${./caddy/index.html} $out/index.html
|
||||
'';
|
||||
in
|
||||
{
|
||||
|
||||
|
@ -19,22 +15,12 @@ in
|
|||
settings.PasswordAuthentication = false;
|
||||
};
|
||||
|
||||
services.comin = enabled // {
|
||||
remotes = [
|
||||
{
|
||||
name = "origin";
|
||||
url = "https://github.com/daylinmorgan/oizys.git";
|
||||
branches.main.name = "main";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
security.polkit = enabled; # attic was looking for this...
|
||||
environment.systemPackages = [ pkgs.attic-client ];
|
||||
|
||||
# allow docker to forward the request to the host running attic
|
||||
# https://discourse.nixos.org/t/docker-container-not-resolving-to-host/30259/6
|
||||
# networking.firewall.extraCommands = "iptables -A INPUT -p tcp --destination-port ${atticPort} -s 172.16.0.0/12 -j ACCEPT";
|
||||
networking.firewall.extraCommands = "iptables -A INPUT -p tcp --destination-port ${atticPort} -s 172.16.0.0/12 -j ACCEPT";
|
||||
services.atticd = enabled // {
|
||||
|
||||
# Replace with absolute path to your credentials file
|
||||
|
@ -70,19 +56,13 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
services.caddy = enabled // {
|
||||
extraConfig = builtins.readFile ./caddy/Caddyfile;
|
||||
virtualHosts."attic.dayl.in".extraConfig = ''
|
||||
redir /oizys /
|
||||
|
||||
handle / {
|
||||
root * ${static}
|
||||
file_server
|
||||
services.comin = enabled // {
|
||||
remotes = [
|
||||
{
|
||||
name = "origin";
|
||||
url = "https://github.com/daylinmorgan/oizys.git";
|
||||
branches.main.name = "main";
|
||||
}
|
||||
|
||||
handle /* {
|
||||
reverse_proxy http://localhost:5656
|
||||
}
|
||||
'';
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
7
todo.md
7
todo.md
|
@ -3,13 +3,14 @@
|
|||
## oizys
|
||||
|
||||
- [ ] write a flake template that includes the systems boilerplate
|
||||
- [ ] get the running action url after `oizys ci {workflow}.yml`
|
||||
- [ ] include all of the defined overlays from `./overlays` in the `forAllSystems` nixpkgs
|
||||
|
||||
## software
|
||||
|
||||
- [ ] include langservers for enabled languages?
|
||||
<!--[tracking issue](https://github.com/wez/wezterm/issues/5990)-->
|
||||
- [ ] ~wezterm is broken...something to do with fonts?~ using ghostty
|
||||
- [ ] wezterm is broken...something to do with fonts?
|
||||
I tried used the nix flake and that didn't help
|
||||
[tracking issue](https://github.com/wez/wezterm/issues/5990)
|
||||
|
||||
|
||||
### Window Manager
|
||||
|
|
Loading…
Reference in a new issue