mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-25 08:30:45 -06:00
Compare commits
1 commit
fd9fc67037
...
6eff060be0
Author | SHA1 | Date | |
---|---|---|---|
6eff060be0 |
6 changed files with 32 additions and 27 deletions
13
.github/workflows/update.yml
vendored
13
.github/workflows/update.yml
vendored
|
@ -14,11 +14,14 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: daylin-bot/actions/setup@main
|
|
||||||
|
|
||||||
- run: git checkout -B flake-lock
|
- run: git checkout -B flake-lock
|
||||||
|
|
||||||
|
- name: Setup Git Bot
|
||||||
|
run: |
|
||||||
|
git --version
|
||||||
|
git config user.name 'daylin-bot'
|
||||||
|
git config user.email 'bot@dayl.in'
|
||||||
|
|
||||||
- uses: DeterminateSystems/nix-installer-action@v12
|
- uses: DeterminateSystems/nix-installer-action@v12
|
||||||
with:
|
with:
|
||||||
extra-conf: |
|
extra-conf: |
|
||||||
|
@ -48,9 +51,7 @@ jobs:
|
||||||
--print-build-logs
|
--print-build-logs
|
||||||
|
|
||||||
- name: Commit Updates
|
- name: Commit Updates
|
||||||
uses: daylin-bot/actions/commit-and-push@main
|
run: git push --set-upstream --force origin flake-lock
|
||||||
with:
|
|
||||||
push-args: --set-upstream --force origin flake-lock
|
|
||||||
|
|
||||||
build-full:
|
build-full:
|
||||||
needs: build-minimal
|
needs: build-minimal
|
||||||
|
|
|
@ -499,11 +499,11 @@
|
||||||
"lix": {
|
"lix": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1721930741,
|
"lastModified": 1721841700,
|
||||||
"narHash": "sha256-bzqEYvkT78V86XPp4/WRYiLBeYZ0bqZu+2Who9UuIgE=",
|
"narHash": "sha256-5aO0cXENUI/38xsG0ww0QSsVSlkvMvKfxbeYXYH08Es=",
|
||||||
"rev": "c4c7cb7613a859faee3933a7f24f3e496e5548e9",
|
"rev": "8d12e0fbb7306cbc58b12ef051d7067d703738de",
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/c4c7cb7613a859faee3933a7f24f3e496e5548e9.tar.gz"
|
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/8d12e0fbb7306cbc58b12ef051d7067d703738de.tar.gz"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
|
|
|
@ -1,5 +1,12 @@
|
||||||
{ enabled, ... }:
|
|
||||||
{
|
{
|
||||||
|
self,
|
||||||
|
pkgs,
|
||||||
|
enabled,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = with self.nixosModules; [ restic ];
|
||||||
|
|
||||||
oizys = {
|
oizys = {
|
||||||
languages = [
|
languages = [
|
||||||
"nim"
|
"nim"
|
||||||
|
@ -13,6 +20,12 @@
|
||||||
nix-ld = enabled;
|
nix-ld = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
(writeShellScriptBin "gitea" ''
|
||||||
|
ssh -p 2222 -o StrictHostKeyChecking=no git@127.0.0.1 "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
|
||||||
services.restic.backups.gdrive = {
|
services.restic.backups.gdrive = {
|
||||||
# directories created by gitea and soft-serve aren't world readable
|
# directories created by gitea and soft-serve aren't world readable
|
||||||
user = "root";
|
user = "root";
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
(writeShellScriptBin "gitea" ''
|
|
||||||
ssh -p 2222 -o StrictHostKeyChecking=no git@127.0.0.1 "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"
|
|
||||||
'')
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -1,4 +1,8 @@
|
||||||
{ config, enabled, ... }:
|
{
|
||||||
|
config,
|
||||||
|
enabled,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
|
|
|
@ -8,6 +8,7 @@ let
|
||||||
inherit (builtins) filter;
|
inherit (builtins) filter;
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
nixosSystem
|
nixosSystem
|
||||||
|
isNixFile
|
||||||
mkDefaultOizysModule
|
mkDefaultOizysModule
|
||||||
mkOizysModule
|
mkOizysModule
|
||||||
enabled
|
enabled
|
||||||
|
@ -15,17 +16,12 @@ let
|
||||||
pkgsFromSystem
|
pkgsFromSystem
|
||||||
pkgFromSystem
|
pkgFromSystem
|
||||||
overlayFrom
|
overlayFrom
|
||||||
isNixFile
|
|
||||||
;
|
;
|
||||||
inherit (lib.filesystem) listFilesRecursive;
|
inherit (lib.filesystem) listFilesRecursive;
|
||||||
|
|
||||||
pkgFrom = pkgFromSystem "x86_64-linux";
|
pkgFrom = pkgFromSystem "x86_64-linux";
|
||||||
pkgsFrom = pkgsFromSystem "x86_64-linux";
|
pkgsFrom = pkgsFromSystem "x86_64-linux";
|
||||||
|
|
||||||
hostPath = host: ../. + "/hosts/${host}";
|
|
||||||
# all nix files not including pkgs.nix
|
|
||||||
hostFiles = host: filter isNixFile (listFilesRecursive (hostPath host));
|
|
||||||
|
|
||||||
mkIso = nixosSystem {
|
mkIso = nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
|
@ -58,8 +54,7 @@ let
|
||||||
../overlays
|
../overlays
|
||||||
inputs.lix-module.nixosModules.default
|
inputs.lix-module.nixosModules.default
|
||||||
inputs.hyprland.nixosModules.default
|
inputs.hyprland.nixosModules.default
|
||||||
] ++ (hostFiles hostName);
|
] ++ filter isNixFile (listFilesRecursive (../. + "/hosts/${hostName}"));
|
||||||
|
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit
|
inherit
|
||||||
inputs
|
inputs
|
||||||
|
|
Loading…
Reference in a new issue