64 Commits

Author SHA1 Message Date
07ae2f1996 luks
All checks were successful
/ perform flake analysis (push) Successful in 36s
2026-01-15 14:09:07 +01:00
679e8e2781 single disk array
All checks were successful
/ perform flake analysis (push) Successful in 40s
2026-01-15 10:32:07 +01:00
637433e101 disk
All checks were successful
/ perform flake analysis (push) Successful in 37s
2026-01-13 22:33:20 +01:00
5c1dec5c27 remove secrets
Some checks failed
/ build hive configuration (push) Failing after 1m7s
/ perform flake analysis (push) Successful in 1m23s
2026-01-09 16:58:32 +01:00
a194e1fb90 mkem
Some checks failed
/ perform flake analysis (push) Successful in 36s
/ build hive configuration (push) Failing after 1m11s
2026-01-09 16:56:05 +01:00
9a20f7846e remove nix-serve 2026-01-09 16:43:09 +01:00
5affde5fff test only substituer
All checks were successful
/ perform flake analysis (push) Successful in 37s
/ build hive configuration (push) Successful in 8m21s
2026-01-09 16:28:34 +01:00
cf7bbca114 add to tusted substituters
Some checks failed
/ perform flake analysis (push) Successful in 35s
/ build hive configuration (push) Has been cancelled
2026-01-09 16:23:56 +01:00
85aab484cf use ssh over http
All checks were successful
/ perform flake analysis (push) Successful in 37s
/ build hive configuration (push) Successful in 8m52s
2026-01-09 16:11:19 +01:00
07926b877a change cache push url
Some checks failed
/ perform flake analysis (push) Successful in 38s
/ build hive configuration (push) Has been cancelled
2026-01-09 15:15:37 +01:00
01be899805 change cache push url
Some checks failed
/ perform flake analysis (push) Successful in 38s
/ build hive configuration (push) Failing after 30s
2026-01-09 15:05:07 +01:00
2d2ade7d45 fix uploaed script
Some checks failed
/ perform flake analysis (push) Has been cancelled
/ build hive configuration (push) Has been cancelled
2026-01-09 11:56:16 +01:00
ef4344b962 fix uploaed script
Some checks failed
/ perform flake analysis (push) Successful in 36s
/ build hive configuration (push) Failing after 37s
2026-01-09 11:52:45 +01:00
4c1d0b06dc test if nix available before uploading
All checks were successful
/ perform flake analysis (push) Successful in 36s
/ build hive configuration (push) Successful in 8m0s
2026-01-09 11:39:54 +01:00
daa7881658 test
Some checks failed
/ perform flake analysis (push) Successful in 37s
/ build hive configuration (push) Failing after 20s
2026-01-09 11:35:21 +01:00
5573970ac0 test
Some checks failed
/ perform flake analysis (push) Has been cancelled
/ build hive configuration (push) Has been cancelled
2026-01-09 11:34:45 +01:00
4278477cc9 test
Some checks failed
/ perform flake analysis (push) Successful in 36s
/ build hive configuration (push) Failing after 20s
2026-01-09 11:31:58 +01:00
e60f7c9fc4 test
Some checks failed
/ perform flake analysis (push) Successful in 37s
/ build hive configuration (push) Failing after 21s
2026-01-09 11:26:49 +01:00
05d545d7a6 pass privkey as env
Some checks failed
/ perform flake analysis (push) Successful in 37s
/ build hive configuration (push) Failing after 20s
2026-01-09 11:24:41 +01:00
6bbcfe69e1 test
Some checks failed
/ perform flake analysis (push) Successful in 36s
/ build hive configuration (push) Failing after 23s
2026-01-09 10:50:45 +01:00
1158a8b5ef create /etc/nix in workflow
Some checks failed
/ perform flake analysis (push) Successful in 35s
/ build hive configuration (push) Failing after 22s
2026-01-09 10:44:34 +01:00
1704340180 checkout before copying files
Some checks failed
/ perform flake analysis (push) Successful in 37s
/ build hive configuration (push) Failing after 16s
2026-01-09 10:41:53 +01:00
8dd68054fa setup steps before install nix
Some checks failed
/ perform flake analysis (push) Successful in 37s
/ build hive configuration (push) Failing after 16s
2026-01-07 19:23:14 +01:00
9bb345c061 implement post build hook
Some checks failed
/ perform flake analysis (push) Successful in 37s
/ build hive configuration (push) Failing after 18s
2026-01-07 19:20:44 +01:00
228ac9214c re encrypt key with correct creds
All checks were successful
/ perform flake analysis (push) Successful in 37s
/ build hive configuration (push) Successful in 9m5s
2026-01-07 16:41:05 +01:00
84a5a8090d re encrypt key with correct creds
Some checks failed
/ perform flake analysis (push) Successful in 37s
/ build hive configuration (push) Failing after 9m4s
2026-01-07 16:23:07 +01:00
de7dbd91b4 re encrypt key with correct creds
Some checks failed
/ perform flake analysis (push) Successful in 36s
/ build hive configuration (push) Failing after 9m33s
2026-01-07 16:00:32 +01:00
56ffeaf5a0 format && add nix-serve for caching
Some checks failed
/ perform flake analysis (push) Successful in 37s
/ build hive configuration (push) Failing after 8m50s
2026-01-07 15:29:28 +01:00
13b08066ce add homepage entry for reclamation server
All checks were successful
/ perform flake analysis (push) Successful in 37s
/ build hive configuration (push) Successful in 8m43s
2026-01-07 14:24:01 +01:00
681ddb80f7 fix reclamation modpack
All checks were successful
/ perform flake analysis (push) Successful in 1m36s
/ build hive configuration (push) Successful in 13m14s
2026-01-07 12:44:30 +01:00
76b2b92840 bump reclamation
Some checks failed
/ perform flake analysis (push) Successful in 41s
/ build hive configuration (push) Failing after 9m37s
2026-01-07 11:47:29 +01:00
a6183e7d41 bump flakes
Some checks failed
/ perform flake analysis (push) Successful in 37s
/ build hive configuration (push) Failing after 8m17s
2026-01-06 10:35:44 +01:00
9f14c96f86 bump reclamation dependncies
Some checks failed
/ perform flake analysis (push) Successful in 37s
/ build hive configuration (push) Failing after 7m57s
2026-01-05 16:00:27 +01:00
f787cca05c fix servers config
Some checks failed
/ perform flake analysis (push) Successful in 37s
/ build hive configuration (push) Failing after 8m4s
2026-01-05 14:55:08 +01:00
c2e99ff5ae updated reclamation config
Some checks failed
/ perform flake analysis (push) Successful in 38s
/ build hive configuration (push) Failing after 9m2s
2026-01-05 14:31:26 +01:00
263851f911 bump reclamation flake
Some checks failed
/ perform flake analysis (push) Successful in 36s
/ build hive configuration (push) Failing after 7m29s
2026-01-02 15:37:38 +01:00
bcab85f731 bump flake
Some checks failed
/ perform flake analysis (push) Successful in 35s
/ build hive configuration (push) Failing after 1m47s
2026-01-02 15:13:13 +01:00
29b632a961 add reclamation server
Some checks failed
/ perform flake analysis (push) Successful in 52s
/ build hive configuration (push) Failing after 1m52s
2026-01-02 15:02:35 +01:00
Awen Lelu
d068ea8c2d revert docker entwork change
All checks were successful
/ perform flake analysis (push) Successful in 36s
/ build hive configuration (push) Successful in 8m4s
2025-12-25 10:25:10 +01:00
shobu
54443f177b return 0 for create network script
All checks were successful
/ perform flake analysis (push) Successful in 38s
/ build hive configuration (push) Successful in 9m1s
2025-12-24 18:34:06 +01:00
shobu
c1470a7312 correct typo in gluetun
Some checks failed
/ perform flake analysis (push) Successful in 1m27s
/ build hive configuration (push) Failing after 8m44s
2025-12-24 18:18:51 +01:00
shobu
0032d65e18 store path to docker exec and correct key in gitea runner conf
Some checks are pending
/ perform flake analysis (push) Successful in 37s
/ build hive configuration (push) Has started running
use correct docker version
2025-12-24 18:01:18 +01:00
shobu
45300e7a21 Revert "add bookstack configuration"
This reverts commit 009dc9373f.
2025-12-24 17:45:27 +01:00
shobu
009dc9373f add bookstack configuration 2025-12-24 17:43:45 +01:00
shobu
273066c74a complied to after and wanted-by syntax
Some checks failed
/ perform flake analysis (push) Successful in 37s
/ build hive configuration (push) Failing after 8m33s
2025-12-24 17:30:03 +01:00
shobu
d4b315e90e removed network option from oci-container
Some checks failed
/ perform flake analysis (push) Successful in 37s
/ build hive configuration (push) Failing after 1m6s
2025-12-24 17:26:31 +01:00
shobu
527a17a169 bind mount local nix store to containers
Some checks failed
/ perform flake analysis (push) Successful in 44s
/ build hive configuration (push) Failing after 1m0s
2025-12-24 17:21:03 +01:00
Awen Lelu
77b1bf9249 systemd unit to create a network for transmission
Some checks failed
/ perform flake analysis (push) Successful in 41s
/ build hive configuration (push) Failing after 57s
2025-12-20 13:42:53 +01:00
Awen Lelu
1e58fbe5f4 use service:gluetune as network parameter
All checks were successful
/ perform flake analysis (push) Successful in 1m20s
/ build hive configuration (push) Successful in 8m23s
2025-12-20 11:06:23 +01:00
shobu
f06e325736 add copyparty to starr group
All checks were successful
/ perform flake analysis (push) Successful in 1m24s
/ build hive configuration (push) Successful in 9m9s
mount nix store in runner container
2025-12-17 17:51:34 +01:00
Awen Lelu
8ee5550803 added lan option to copyparty
All checks were successful
/ perform flake analysis (push) Successful in 31s
/ build hive configuration (push) Successful in 8m8s
2025-12-05 13:24:35 +01:00
Awen Lelu
db23c300fe removed ollama and copyparty setup for nginx
All checks were successful
/ perform flake analysis (push) Successful in 47s
/ build hive configuration (push) Successful in 8m13s
2025-12-05 13:13:45 +01:00
Awen Lelu
24954e5367 added ollama service
Some checks failed
/ perform flake analysis (push) Successful in 32s
/ build hive configuration (push) Failing after 1h10m10s
2025-11-21 21:15:33 +01:00
Awen Lelu
1a80911b3f added ollama service
Some checks are pending
/ perform flake analysis (push) Successful in 35s
/ build hive configuration (push) Has started running
2025-11-21 21:04:05 +01:00
Awen Lelu
ddf12655bc use 390 serie of driver
Some checks are pending
/ perform flake analysis (push) Successful in 33s
/ build hive configuration (push) Has started running
2025-11-21 20:25:53 +01:00
Awen Lelu
e5207d10ab accept nvidia term of usage
All checks were successful
/ perform flake analysis (push) Successful in 33s
/ build hive configuration (push) Successful in 11m19s
2025-11-21 19:39:48 +01:00
Awen Lelu
2f4c425c50 use legacy nvidia drivers
Some checks failed
/ perform flake analysis (push) Successful in 32s
/ build hive configuration (push) Failing after 1m12s
2025-11-21 19:31:10 +01:00
Awen Lelu
70d25c574d add nvidia drivers to sin
All checks were successful
/ perform flake analysis (push) Successful in 1m20s
/ build hive configuration (push) Successful in 13m6s
2025-11-21 18:47:16 +01:00
Awen Lelu
9a9cc67b1c remove caching
All checks were successful
/ perform flake analysis (push) Successful in 32s
/ build hive configuration (push) Successful in 8m15s
2025-11-15 00:34:07 +01:00
Awen Lelu
0266841088 edit cache settings
Some checks failed
/ perform flake analysis (push) Successful in 38s
/ build hive configuration (push) Failing after 44s
2025-11-14 18:36:19 +01:00
7bdb31c46c Merge pull request 'add gitea runner configuration' (#1) from test-deploy into master
All checks were successful
/ perform flake analysis (push) Successful in 32s
/ build hive configuration (push) Successful in 7m49s
Reviewed-on: #1
2025-11-12 16:50:47 +01:00
Awen Lelu
1128f9a0dc set branch for deplot to master
All checks were successful
/ perform flake analysis (push) Successful in 33s
2025-11-12 16:36:48 +01:00
Awen Lelu
a0eb21abf3 add real nix cache
All checks were successful
/ perform flake analysis (push) Successful in 32s
/ build hive configuration (push) Successful in 8m1s
2025-11-12 16:35:07 +01:00
shobu
65a47967da add gitea jobs and runner configuration
All checks were successful
/ perform flake analysis (push) Successful in 32s
/ build hive configuration (push) Successful in 8m44s
build and deploy colmena hive using gitea actions
2025-11-12 12:25:22 +01:00
33 changed files with 982 additions and 612 deletions

View File

@@ -0,0 +1,15 @@
on: [push]
jobs:
analysis:
permissions:
contents: read
id-token: write
name: perform flake analysis
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check Nix flake inputs
uses: http://github.com/DeterminateSystems/flake-checker-action@main

View File

@@ -1,14 +0,0 @@
on: [push]
jobs:
build:
name: Build Nix targets
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: http://github.com/cachix/install-nix-action@v18
- uses: http://github.com/cachix/cachix-action@v12
with:
name: statix
- name: Check Nix flake inputs
uses: http://github.com/DeterminateSystems/flake-checker-action@main

View File

@@ -0,0 +1,43 @@
on:
push:
branches:
- master
jobs:
deploy:
container:
volumes:
- /nix/store:/var/nix/hosted-store
permissions:
contents: read
id-token: write
name: build hive configuration
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: setup
env:
CACHE_PRIVKEY: ${{secrets.CACHE_PRIVKEY}}
shell: bash
run: |
mkdir -p /var/secrets/
echo "$CACHE_PRIVKEY" >> /var/secrets/cache_privkey
mkdir -p /etc/nix
cp ./scripts/upload-to-cache.sh /etc/nix/
chmod +x /etc/nix/upload-to-cache.sh
- uses: cachix/install-nix-action@v31
with:
extra_nix_config: |
extra-trusted-public-keys = localhost:TiRpr2LzamX/MCKBUmFlZ8inWz94QWGL88fMEHg9Kgc=
extra-substituters = "local?store=/var/nix/hosted-store&priority=20"
secret-key-files = /var/secrets/cache_privkey
post-build-hook = /etc/nix/upload-to-cache.sh
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- uses: http://github.com/cachix/cachix-action@v16
with:
name: colmena
- run: nix run .#colmena apply

311
flake.lock generated
View File

@@ -8,11 +8,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1754433428, "lastModified": 1762618334,
"narHash": "sha256-NA/FT2hVhKDftbHSwVnoRTFhes62+7dxZbxj5Gxvghs=", "narHash": "sha256-wyT7Pl6tMFbFrs8Lk/TlEs81N6L+VSybPfiIgzU8lbQ=",
"owner": "ryantm", "owner": "ryantm",
"repo": "agenix", "repo": "agenix",
"rev": "9edb1787864c4f59ae5074ad498b6272b3ec308d", "rev": "fcdea223397448d35d9b31f798479227e80183f6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -30,11 +30,11 @@
"stable": "stable" "stable": "stable"
}, },
"locked": { "locked": {
"lastModified": 1755272288, "lastModified": 1762034856,
"narHash": "sha256-ypTPb2eKcOBbOoyvPV0j4ZOXs4kayo73/2KI456QnE0=", "narHash": "sha256-QVey3iP3UEoiFVXgypyjTvCrsIlA4ecx6Acaz5C8/PQ=",
"owner": "zhaofengli", "owner": "zhaofengli",
"repo": "colmena", "repo": "colmena",
"rev": "5bf4ce6a24adba74a5184f4a9bef01d545a09473", "rev": "349b035a5027f23d88eeb3bc41085d7ee29f18ed",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -49,11 +49,11 @@
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_3"
}, },
"locked": { "locked": {
"lastModified": 1760309387, "lastModified": 1767637959,
"narHash": "sha256-yCjkJuQbt6DjdS1XJL2uwyLu1AcmDvlyMGojBq8Ua38=", "narHash": "sha256-+gBU5Cj9QNpHLQ5PHJoWNQft7TMsBM6X+tDQg+/B2P0=",
"owner": "9001", "owner": "9001",
"repo": "copyparty", "repo": "copyparty",
"rev": "d099e5e84e191d67a7bffa574ab39b6d0d4f6adf", "rev": "038af507772593b904b5c3efc306f89cbdf2b6fb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -91,11 +91,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1758287904, "lastModified": 1766150702,
"narHash": "sha256-IGmaEf3Do8o5Cwp1kXBN1wQmZwQN3NLfq5t4nHtVtcU=", "narHash": "sha256-P0kM+5o+DKnB6raXgFEk3azw8Wqg5FL6wyl9jD+G5a4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "67ff9807dd148e704baadbd4fd783b54282ca627", "rev": "916506443ecd0d0b4a0f4cf9d40a3c22ce39b378",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -136,6 +136,22 @@
"type": "github" "type": "github"
} }
}, },
"flake-compat_3": {
"flake": false,
"locked": {
"lastModified": 1747046372,
"narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-utils": { "flake-utils": {
"locked": { "locked": {
"lastModified": 1659877975, "lastModified": 1659877975,
@@ -184,6 +200,24 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_4": {
"inputs": {
"systems": "systems_3"
},
"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"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@@ -233,11 +267,31 @@
"nixpkgs": "nixpkgs_4" "nixpkgs": "nixpkgs_4"
}, },
"locked": { "locked": {
"lastModified": 1760234253, "lastModified": 1767147099,
"narHash": "sha256-ElkSuw4RxtyOY3mThezUpOM8c0fTNWlL0we/deGiTZU=", "narHash": "sha256-395ehjdAtaqCbKmx+PhKAqnkYLvTtAzq2qzFG9qaGDw=",
"owner": "Infinidoge", "owner": "Infinidoge",
"repo": "nix-minecraft", "repo": "nix-minecraft",
"rev": "a82ae8f5079a134d33337cf211d7617f1268b301", "rev": "01f571579edd64433f97c4294137fbc366deef4b",
"type": "github"
},
"original": {
"owner": "Infinidoge",
"repo": "nix-minecraft",
"type": "github"
}
},
"nix-minecraft_2": {
"inputs": {
"flake-compat": "flake-compat_3",
"flake-utils": "flake-utils_4",
"nixpkgs": "nixpkgs_6"
},
"locked": {
"lastModified": 1767147099,
"narHash": "sha256-395ehjdAtaqCbKmx+PhKAqnkYLvTtAzq2qzFG9qaGDw=",
"owner": "Infinidoge",
"repo": "nix-minecraft",
"rev": "01f571579edd64433f97c4294137fbc366deef4b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -311,11 +365,11 @@
}, },
"nixpkgs_5": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1759994382, "lastModified": 1767313136,
"narHash": "sha256-wSK+3UkalDZRVHGCRikZ//CyZUJWDJkBDTQX1+G77Ow=", "narHash": "sha256-16KkgfdYqjaeRGBaYsNrhPRRENs0qzkQVUooNHtoy2w=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5da4a26309e796daa7ffca72df93dbe53b8164c7", "rev": "ac62194c3917d5f474c1a844b6fd6da2db95077d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -326,6 +380,36 @@
} }
}, },
"nixpkgs_6": { "nixpkgs_6": {
"locked": {
"lastModified": 1748929857,
"narHash": "sha256-lcZQ8RhsmhsK8u7LIFsJhsLh/pzR9yZ8yqpTzyGdj+Q=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "c2a03962b8e24e669fb37b7df10e7c79531ff1a4",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_7": {
"locked": {
"lastModified": 1767364772,
"narHash": "sha256-fFUnEYMla8b7UKjijLnMe+oVFOz6HjijGGNS1l7dYaQ=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "16c7794d0a28b5a37904d55bcca36003b9109aaa",
"type": "github"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"nixpkgs_8": {
"locked": { "locked": {
"lastModified": 1737062831, "lastModified": 1737062831,
"narHash": "sha256-Tbk1MZbtV2s5aG+iM99U8FqwxU/YNArMcWAv6clcsBc=", "narHash": "sha256-Tbk1MZbtV2s5aG+iM99U8FqwxU/YNArMcWAv6clcsBc=",
@@ -339,36 +423,6 @@
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
} }
}, },
"nixpkgs_7": {
"locked": {
"lastModified": 1744440957,
"narHash": "sha256-FHlSkNqFmPxPJvy+6fNLaNeWnF1lZSgqVCl/eWaJRc4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "26d499fc9f1d567283d5d56fcf367edd815dba1d",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-24.11",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_8": {
"locked": {
"lastModified": 1744463964,
"narHash": "sha256-LWqduOgLHCFxiTNYi3Uj5Lgz0SR+Xhw3kr/3Xd0GPTM=",
"rev": "2631b0b7abcea6e640ce31cd78ea58910d31e650",
"revCount": 782401,
"type": "tarball",
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.782401%2Brev-2631b0b7abcea6e640ce31cd78ea58910d31e650/01962c8a-63c4-7abd-a3df-63a17b548cc7/source.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
}
},
"nixpkgs_9": { "nixpkgs_9": {
"locked": { "locked": {
"lastModified": 1736549401, "lastModified": 1736549401,
@@ -385,54 +439,24 @@
"type": "github" "type": "github"
} }
}, },
"pyproject-build-systems": { "reclamation": {
"inputs": { "inputs": {
"nixpkgs": [ "nix-minecraft": "nix-minecraft_2",
"striped-back", "nixpkgs": "nixpkgs_7",
"nixpkgs" "utils": "utils"
],
"pyproject-nix": [
"striped-back",
"pyproject-nix"
],
"uv2nix": [
"striped-back",
"uv2nix"
]
}, },
"locked": { "locked": {
"lastModified": 1744599653, "lastModified": 1767786101,
"narHash": "sha256-nysSwVVjG4hKoOjhjvE6U5lIKA8sEr1d1QzEfZsannU=", "narHash": "sha256-ENlpYr2V5u0/Enq07nIHfzetqmS95aydQYIM6sISVUc=",
"owner": "pyproject-nix", "ref": "refs/heads/master",
"repo": "build-system-pkgs", "rev": "b71acff364b7b5eb3e1b68915aeb379053b86c94",
"rev": "7dba6dbc73120e15b558754c26024f6c93015dd7", "revCount": 10,
"type": "github" "type": "git",
"url": "https://git.shobu.fr/sin_serhao/reclamation"
}, },
"original": { "original": {
"owner": "pyproject-nix", "type": "git",
"repo": "build-system-pkgs", "url": "https://git.shobu.fr/sin_serhao/reclamation"
"type": "github"
}
},
"pyproject-nix": {
"inputs": {
"nixpkgs": [
"striped-back",
"nixpkgs"
]
},
"locked": {
"lastModified": 1743438845,
"narHash": "sha256-1GSaoubGtvsLRwoYwHjeKYq40tLwvuFFVhGrG8J9Oek=",
"owner": "pyproject-nix",
"repo": "pyproject.nix",
"rev": "8063ec98edc459571d042a640b1c5e334ecfca1e",
"type": "github"
},
"original": {
"owner": "pyproject-nix",
"repo": "pyproject.nix",
"type": "github"
} }
}, },
"root": { "root": {
@@ -443,16 +467,15 @@
"disko": "disko", "disko": "disko",
"nix-minecraft": "nix-minecraft", "nix-minecraft": "nix-minecraft",
"nixpkgs": "nixpkgs_5", "nixpkgs": "nixpkgs_5",
"reclamation": "reclamation",
"shoblog-front": "shoblog-front", "shoblog-front": "shoblog-front",
"striped-back": "striped-back",
"striped-front": "striped-front",
"testing-grounds": "testing-grounds", "testing-grounds": "testing-grounds",
"unstable": "unstable" "unstable": "unstable"
} }
}, },
"shoblog-front": { "shoblog-front": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_6" "nixpkgs": "nixpkgs_8"
}, },
"locked": { "locked": {
"lastModified": 1752594581, "lastModified": 1752594581,
@@ -484,45 +507,6 @@
"type": "github" "type": "github"
} }
}, },
"striped-back": {
"inputs": {
"nixpkgs": "nixpkgs_7",
"pyproject-build-systems": "pyproject-build-systems",
"pyproject-nix": "pyproject-nix",
"uv2nix": "uv2nix"
},
"locked": {
"lastModified": 1748719386,
"narHash": "sha256-nyXHemXPEKnqIVIYIorSbt64zRwMvijyGQGCW3zUUkc=",
"ref": "refs/heads/master",
"rev": "bdfd6f1f4aac6a00ae4509f14b3a63c84d169edf",
"revCount": 8,
"type": "git",
"url": "ssh://git@gitlab.com/striped1/striped-back"
},
"original": {
"type": "git",
"url": "ssh://git@gitlab.com/striped1/striped-back"
}
},
"striped-front": {
"inputs": {
"nixpkgs": "nixpkgs_8"
},
"locked": {
"lastModified": 1748718798,
"narHash": "sha256-KUxbrUjRfuKjkJZLzKr11WEXLfPs38YrW/CMG6XbnbY=",
"ref": "refs/heads/master",
"rev": "a553f10147dad9e41829f67b247817a079f6f671",
"revCount": 11,
"type": "git",
"url": "ssh://git@gitlab.com/striped1/striped-front"
},
"original": {
"type": "git",
"url": "ssh://git@gitlab.com/striped1/striped-front"
}
},
"systems": { "systems": {
"locked": { "locked": {
"lastModified": 1681028828, "lastModified": 1681028828,
@@ -553,6 +537,36 @@
"type": "github" "type": "github"
} }
}, },
"systems_3": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_4": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"testing-grounds": { "testing-grounds": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_9" "nixpkgs": "nixpkgs_9"
@@ -573,11 +587,11 @@
}, },
"unstable": { "unstable": {
"locked": { "locked": {
"lastModified": 1760038930, "lastModified": 1767640445,
"narHash": "sha256-Oncbh0UmHjSlxO7ErQDM3KM0A5/Znfofj2BSzlHLeVw=", "narHash": "sha256-UWYqmD7JFBEDBHWYcqE6s6c77pWdcU/i+bwD6XxMb8A=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "0b4defa2584313f3b781240b29d61f6f9f7e0df3", "rev": "9f0c42f8bc7151b8e7e5840fb3bd454ad850d8c5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -587,28 +601,21 @@
"type": "github" "type": "github"
} }
}, },
"uv2nix": { "utils": {
"inputs": { "inputs": {
"nixpkgs": [ "systems": "systems_4"
"striped-back",
"nixpkgs"
],
"pyproject-nix": [
"striped-back",
"pyproject-nix"
]
}, },
"locked": { "locked": {
"lastModified": 1744797880, "lastModified": 1731533236,
"narHash": "sha256-gt9JBkYjZAEvGwCG7RMAAAr0j2RsaRmOMj/vV0briXk=", "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "pyproject-nix", "owner": "numtide",
"repo": "uv2nix", "repo": "flake-utils",
"rev": "3583e037163491ecd833f1d5d3eedf3869543c5d", "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "pyproject-nix", "owner": "numtide",
"repo": "uv2nix", "repo": "flake-utils",
"type": "github" "type": "github"
} }
} }

View File

@@ -17,16 +17,18 @@
# sin inputs # sin inputs
nix-minecraft.url = "github:Infinidoge/nix-minecraft"; nix-minecraft.url = "github:Infinidoge/nix-minecraft";
testing-grounds.url = "gitlab:shobu13/testing-grounds"; testing-grounds.url = "gitlab:shobu13/testing-grounds";
reclamation.url = "git+https://git.shobu.fr/sin_serhao/reclamation";
shoblog-front.url = "gitlab:shobu13/shoblog"; shoblog-front.url = "gitlab:shobu13/shoblog";
striped-front.url = "git+ssh://git@gitlab.com/striped1/striped-front"; # striped-front.url = "git+ssh://git@gitlab.com/striped1/striped-front";
striped-back.url = "git+ssh://git@gitlab.com/striped1/striped-back"; # striped-back.url = "git+ssh://git@gitlab.com/striped1/striped-back";
copyparty.url = "github:9001/copyparty"; copyparty.url = "github:9001/copyparty";
}; };
# Flake outputs # Flake outputs
outputs = inputs@{ outputs =
inputs@{
self, self,
nixpkgs, nixpkgs,
@@ -38,10 +40,11 @@
disko, disko,
shoblog-front, shoblog-front,
striped-front, # striped-front,
striped-back, # striped-back,
nix-minecraft, nix-minecraft,
testing-grounds, testing-grounds,
reclamation,
copyparty, copyparty,
... ...
}: }:
@@ -52,11 +55,36 @@
]; ];
# Helper to provide system-specific attributes # Helper to provide system-specific attributes
forEachSupportedSystem = f: inputs.nixpkgs.lib.genAttrs supportedSystems (system: f { forEachSupportedSystem =
f:
inputs.nixpkgs.lib.genAttrs supportedSystems (
system:
f {
pkgs = import inputs.nixpkgs { inherit system; }; pkgs = import inputs.nixpkgs { inherit system; };
}); }
);
in in
{ {
nixosConfigurations = {
sin = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
disko.nixosModules.disko
agenix.nixosModules.default
./hosts/sin/configuration.nix
./hosts/sin/hardware-configuration.nix
]
++ [
# modules
./modules/gitea/sin
];
specialArgs = {
inherit inputs;
};
};
};
colmenaHive = colmena.lib.makeHive { colmenaHive = colmena.lib.makeHive {
meta = { meta = {
nixpkgs = import nixpkgs { nixpkgs = import nixpkgs {
@@ -69,45 +97,75 @@
}; };
}; };
thea = {name, nodes, pkgs, ...}: { thea =
{
name,
nodes,
pkgs,
...
}:
{
imports = [ imports = [
agenix.nixosModules.default
./hosts/${name}/configuration.nix ./hosts/${name}/configuration.nix
./hosts/${name}/hardware-configuration.nix ./hosts/${name}/hardware-configuration.nix
] ++ [ ]
++ [
# modules # modules
./modules/gitea/${name} ./modules/gitea/${name}
]; ];
deployment.targetHost = "thea.homelab.local"; deployment.targetHost = "192.168.1.12";
}; };
sin = {name, nodes, pkgs, ...}: { sin =
{
name,
nodes,
pkgs,
...
}:
{
imports = [ imports = [
disko.nixosModules.disko disko.nixosModules.disko
agenix.nixosModules.default agenix.nixosModules.default
./hosts/${name}/configuration.nix ./hosts/${name}/configuration.nix
./hosts/${name}/hardware-configuration.nix ./hosts/${name}/hardware-configuration.nix
] ++ [ ]
++ [
# modules # modules
./modules/gitea/${name} ./modules/gitea/${name}
]; ];
deployment.targetHost = "sin.homelab.local"; deployment.targetHost = "192.168.1.14";
deployment.allowLocalDeployment = true;
}; };
}; };
devShells = forEachSupportedSystem ({ pkgs }: { devShells = forEachSupportedSystem (
{ pkgs }:
{
default = pkgs.mkShell { default = pkgs.mkShell {
# The Nix packages provided in the environment # The Nix packages provided in the environment
# Add any you need here # Add any you need here
packages = with pkgs; [ colmena.packages.${pkgs.system}.colmena ]; packages = with pkgs; [
colmena.packages.${pkgs.stdenv.system}.colmena
agenix.packages.${pkgs.stdenv.system}.agenix
];
# Set any environment variables for your dev shell # Set any environment variables for your dev shell
env = { }; env = { };
# Add any shell logic you want executed any time the environment is activated # Add any shell logic you want executed any time the environment is activated
shellHook = '' shellHook = '''';
''; };
}; }
}); );
packages = forEachSupportedSystem (
{ pkgs }:
{
inherit (colmena.packages."${pkgs.system}") colmena;
}
);
}; };
} }

View File

@@ -2,6 +2,7 @@
modulesPath, modulesPath,
lib, lib,
pkgs, pkgs,
config,
... ...
}: }:
{ {
@@ -29,9 +30,11 @@
networking = { networking = {
hostName = "sin"; hostName = "sin";
nameservers = [ "10.0.0.4" ]; networkmanager.enable = true;
dhcpcd.extraConfig = "nohook resolv.conf"; # nameservers = [ "10.0.0.4" ];
# dhcpcd.extraConfig = "nohook resolv.conf";
firewall = { firewall = {
allowedTCPPorts = [ allowedTCPPorts = [
@@ -49,18 +52,25 @@
time.timeZone = "Europe/Paris"; time.timeZone = "Europe/Paris";
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [
"nix-command"
"flakes"
];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
users.users = { users.users = {
zimablade = { zimablade = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" ]; extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKsu+4S+BHmypQTq2IR9y+ihvbF7sXbBznKtIjVAeHJ1 shobu@nixos" ]; openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKsu+4S+BHmypQTq2IR9y+ihvbF7sXbBznKtIjVAeHJ1 shobu@nixos"
];
}; };
shobu = { shobu = {
isNormalUser = true; isNormalUser = true;
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKsu+4S+BHmypQTq2IR9y+ihvbF7sXbBznKtIjVAeHJ1 shobu@nixos" ]; openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKsu+4S+BHmypQTq2IR9y+ihvbF7sXbBznKtIjVAeHJ1 shobu@nixos"
];
}; };
}; };
@@ -69,10 +79,12 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKsu+4S+BHmypQTq2IR9y+ihvbF7sXbBznKtIjVAeHJ1 shobu@nixos" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKsu+4S+BHmypQTq2IR9y+ihvbF7sXbBznKtIjVAeHJ1 shobu@nixos"
]; ];
environment.systemPackages = map lib.lowPrio [ environment.systemPackages =
map lib.lowPrio [
pkgs.curl pkgs.curl
pkgs.gitMinimal pkgs.gitMinimal
] ++ (with pkgs; [ ]
++ (with pkgs; [
helix helix
httpie httpie
btop btop

View File

@@ -1,17 +1,27 @@
{inputs, pkgs, ...}: { {
inputs,
pkgs,
config,
...
}:
{
imports = [ inputs.copyparty.nixosModules.default ]; imports = [ inputs.copyparty.nixosModules.default ];
nixpkgs.overlays = [ inputs.copyparty.overlays.default ]; nixpkgs.overlays = [ inputs.copyparty.overlays.default ];
environment.systemPackages = [ pkgs.copyparty ]; environment.systemPackages = [ pkgs.copyparty ];
services.copyparty = { services.copyparty = {
enable = true; enable = true;
group = "starr";
settings = { settings = {
p = [ 8086 ]; p = [ 8086 ];
e2dsa = true; e2dsa = true;
e2ts = true; e2ts = true;
z = true; z = true;
qr = true; qr = true;
xff-hdr = "X-Real-IP";
xff-src = "lan"; xff-src = "lan";
rproxy = 1;
http-only = true; http-only = true;
og = true; og = true;
shr = "/shares"; shr = "/shares";

View File

@@ -1,6 +1,7 @@
{...}: { { ... }:
{
services.coredns = { services.coredns = {
enable = true; enable = false;
config = '' config = ''
homelab.local { homelab.local {
log log

View File

@@ -14,7 +14,15 @@
}; };
# Flake outputs # Flake outputs
outputs = inputs@{ self, nixpkgs, disko, unstable, agenix, ... }: outputs =
inputs@{
self,
nixpkgs,
disko,
unstable,
agenix,
...
}:
let let
# The systems supported for this flake # The systems supported for this flake
supportedSystems = [ supportedSystems = [
@@ -22,9 +30,14 @@
]; ];
# Helper to provide system-specific attributes # Helper to provide system-specific attributes
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f { forEachSupportedSystem =
f:
nixpkgs.lib.genAttrs supportedSystems (
system:
f {
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
}); }
);
in in
{ {
nixosConfigurations.zimablade = nixpkgs.lib.nixosSystem { nixosConfigurations.zimablade = nixpkgs.lib.nixosSystem {
@@ -40,15 +53,21 @@
}; };
}; };
devShells = forEachSupportedSystem ({ pkgs }: { devShells = forEachSupportedSystem (
{ pkgs }:
{
default = pkgs.mkShell { default = pkgs.mkShell {
# The Nix packages provided in the environment # The Nix packages provided in the environment
# Add any you need here # Add any you need here
packages = with pkgs; [ pkgs.disko nixos-anywhere ]; packages = with pkgs; [
pkgs.disko
nixos-anywhere
];
# Add any shell logic you want executed any time the environment is activated # Add any shell logic you want executed any time the environment is activated
shellHook = ''''; shellHook = '''';
}; };
}); }
);
}; };
} }

View File

@@ -1,4 +1,5 @@
{...}: { { ... }:
{
services.glances = { services.glances = {
enable = true; enable = true;
openFirewall = true; openFirewall = true;

View File

@@ -1,14 +1,27 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }: {
config,
lib,
pkgs,
modulesPath,
...
}:
{ {
imports = imports = [
[ (modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ]; boot.initrd.availableKernelModules = [
"ahci"
"xhci_pci"
"usb_storage"
"usbhid"
"sd_mod"
"sdhci_pci"
];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];

View File

@@ -1,12 +1,12 @@
{ inputs, pkgs, ... }:
{inputs, pkgs, ...}: { {
services.homepage-dashboard = { services.homepage-dashboard = {
enable = true; enable = true;
openFirewall = true; openFirewall = true;
allowedHosts = "dashboard.shobu.fr"; allowedHosts = "dashboard.shobu.fr";
settings = { settings = {
title = "Shobu's homelab dashboard"; title = "Shobu's homelab dashboard";
description = "a dashboard of free and wesome bullshit"; description = "a dashboard of free and awesome bullshit";
startUrl = "https://dashboard.shobu.fr"; startUrl = "https://dashboard.shobu.fr";
base = "https://dashboard.shobu.fr"; base = "https://dashboard.shobu.fr";
headerStyle = "boxed"; headerStyle = "boxed";
@@ -44,7 +44,7 @@
widgets = [ widgets = [
{ {
greeting = { greeting = {
text = "Welcome on my services and links dashboard, make yourself home."; text = "Welcome on my services and links dashboard, make yourself home. :3";
}; };
} }
{ {
@@ -117,6 +117,15 @@
}; };
}; };
} }
{
"reclamation" = {
description = "bring back your world to life";
widget = {
type = "minecraft";
url = "udp://minecraft.shobu.fr:43001";
};
};
}
]; ];
} }
{ {

View File

@@ -1,6 +1,8 @@
{pkgs, inputs, ...}: let { pkgs, inputs, ... }:
let
unstable = import inputs.unstable { system = pkgs.system; }; unstable = import inputs.unstable { system = pkgs.system; };
in { in
{
nixpkgs.config.packageOverrides = pkgs: { nixpkgs.config.packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; }; vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
}; };
@@ -27,13 +29,38 @@ in {
extraGroups = [ "jellyfin" ]; extraGroups = [ "jellyfin" ];
}; };
users.users.sonarr.extraGroups = ["jellyfin" "radarr" "transmission" "starr"]; users.users.sonarr.extraGroups = [
users.users.radarr.extraGroups = ["jellyfin" "sonarr" "transmission" "starr"]; "jellyfin"
users.users.bazarr.extraGroups = ["jellyfin" "sonarr" "transmission" "starr" "radarr"]; "radarr"
users.users.lidarr.extraGroups = ["jellyfin" "starr" "transmission"]; "transmission"
"starr"
users.users.shobu.extraGroups = [ "jellyfin" "starr" "transmission" "radarr" "sonarr" ]; ];
users.users.radarr.extraGroups = [
"jellyfin"
"sonarr"
"transmission"
"starr"
];
users.users.bazarr.extraGroups = [
"jellyfin"
"sonarr"
"transmission"
"starr"
"radarr"
];
users.users.lidarr.extraGroups = [
"jellyfin"
"starr"
"transmission"
];
users.users.shobu.extraGroups = [
"jellyfin"
"starr"
"transmission"
"radarr"
"sonarr"
];
users.groups = { users.groups = {
starr = { }; starr = { };

View File

@@ -1,4 +1,5 @@
{...}: { { ... }:
{
disko.devices = { disko.devices = {
disk = { disk = {
# Devices will be mounted and formatted in alphabetical order, and btrfs can only mount raids # Devices will be mounted and formatted in alphabetical order, and btrfs can only mount raids
@@ -49,39 +50,17 @@
}; };
}; };
data1 = { data = {
type = "disk"; type = "disk";
device = "/dev/sda"; device = "/dev/sda";
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
crypt_p1 = { crypt_p = {
size = "100%"; size = "100%";
content = { content = {
type = "luks"; type = "luks";
name = "p_data1"; # device-mapper name when decrypted name = "p_data";
# Remove settings.keyFile if you want to use interactive password entry
settings = {
allowDiscards = true;
keyFile = "/dev/disk/by-uuid/2021-07-11-12-33-27-00";
keyFileSize = 4096;
};
};
};
};
};
};
data2 = {
type = "disk";
device = "/dev/sdb";
content = {
type = "gpt";
partitions = {
crypt_p2 = {
size = "100%";
content = {
type = "luks";
name = "p_data2";
# Remove settings.keyFile if you want to use interactive password entry # Remove settings.keyFile if you want to use interactive password entry
settings = { settings = {
allowDiscards = true; allowDiscards = true;
@@ -90,10 +69,6 @@
}; };
content = { content = {
type = "btrfs"; type = "btrfs";
extraArgs = [
"-d raid0"
"/dev/mapper/p_data1" # Use decrypted mapped device, same name as defined in disk1
];
subvolumes = { subvolumes = {
"/" = { "/" = {
mountpoint = "/mnt/fs"; mountpoint = "/mnt/fs";

View File

@@ -26,7 +26,10 @@
''; '';
}; };
networking.firewall.allowedTCPPorts = [ 8008 8448 ]; networking.firewall.allowedTCPPorts = [
8008
8448
];
services.matrix-synapse = { services.matrix-synapse = {
enable = true; enable = true;
@@ -45,7 +48,10 @@
x_forwarded = true; x_forwarded = true;
resources = [ resources = [
{ {
names = [ "client" "federation" ]; names = [
"client"
"federation"
];
compress = true; compress = true;
} }
]; ];

21
hosts/sin/ollama.nix Normal file
View File

@@ -0,0 +1,21 @@
{ inputs, ... }:
{
# virtualisation.docker = {
# enable = true;
# storageDriver = "btrfs";
# };
services.ollama = {
enable = true;
openFirewall = true;
loadModels = [ ];
acceleration = "cuda";
};
services.open-webui = {
enable = true;
openFirewall = true;
host = "0.0.0.0";
port = 8050;
};
}

View File

@@ -1,4 +1,5 @@
{...}: { { ... }:
{
age.secrets = { age.secrets = {
# captcha = { # captcha = {
# file = ./secrets/matrix_captcha.age; # file = ./secrets/matrix_captcha.age;

View File

@@ -1,4 +1,10 @@
{config, ...}: { {
config,
pkgs,
lib,
...
}:
{
users.users."starr" = { users.users."starr" = {
extraGroups = [ "transmission" ]; extraGroups = [ "transmission" ];
@@ -14,9 +20,28 @@
transmission.gid = 989; transmission.gid = 989;
}; };
virtualisation.oci-containers = let # systemd.services = {
# docker-transmission-network = {
# after = [
# "network.target"
# "docker-gluetun.service"
# "docker-transmission.service"
# ];
# wantedBy = [
# "docker-gluetun.service"
# "docker-transmission.service"
# ];
# serviceConfig = {
# ExecStart = "${lib.getExe pkgs.docker} network create docker-transmission; exit 0";
# };
# };
# };
virtualisation.oci-containers =
let
peerport = "63369"; peerport = "63369";
in { in
{
backend = "docker"; backend = "docker";
containers = { containers = {
gluetun = { gluetun = {
@@ -36,6 +61,7 @@
extraOptions = [ extraOptions = [
"--cap-add=NET_ADMIN" "--cap-add=NET_ADMIN"
"--device=/dev/net/tun" "--device=/dev/net/tun"
# "--network=docker-transmission"
]; ];
ports = [ ports = [
"13277:13277" "13277:13277"

View File

@@ -2,17 +2,25 @@
# your system. Help is available in the configuration.nix(5) man page, on # your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). # https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, nodes, ... }: {
config,
lib,
pkgs,
nodes,
...
}:
let
sin-address = "192.168.1.14";
in
{ {
imports = imports = [
[
./nginx.nix ./nginx.nix
# ./striped # ./striped
# ./cybercoffee # ./cybercoffee
./ollama.nix ./ollama.nix
./minecraft.nix ./minecraft.nix
# ./shares.nix ./nix-serve.nix
]; ];
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
@@ -22,9 +30,11 @@
networking = { networking = {
hostName = "thea"; # Define your hostname. hostName = "thea"; # Define your hostname.
nameservers = [ "10.0.0.4" ]; networkmanager.enable = true;
dhcpcd.extraConfig = "nohook resolv.conf"; # nameservers = [ "10.0.0.4" ];
# dhcpcd.extraConfig = "nohook resolv.conf";
firewall = { firewall = {
allowedTCPPorts = [ nodes.sin.config.services.gitea.settings.server.SSH_PORT ]; allowedTCPPorts = [ nodes.sin.config.services.gitea.settings.server.SSH_PORT ];
@@ -33,18 +43,23 @@
enable = true; enable = true;
internalInterfaces = [ "enp1s0" ]; internalInterfaces = [ "enp1s0" ];
externalInterface = "enp1s0"; externalInterface = "enp1s0";
forwardPorts = [ { forwardPorts = [
{
# TODO refactor this in the gitea/n100 module # TODO refactor this in the gitea/n100 module
sourcePort = nodes.sin.config.services.gitea.settings.server.SSH_PORT; sourcePort = nodes.sin.config.services.gitea.settings.server.SSH_PORT;
proto = "tcp"; proto = "tcp";
destination = "10.0.0.4:22"; destination = "${sin-address}:22";
} ]; }
];
}; };
}; };
time.timeZone = "Europe/Paris"; time.timeZone = "Europe/Paris";
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [
"nix-command"
"flakes"
];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
users.users.n100 = { users.users.n100 = {
@@ -53,14 +68,17 @@
packages = with pkgs; [ packages = with pkgs; [
]; ];
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKsu+4S+BHmypQTq2IR9y+ihvbF7sXbBznKtIjVAeHJ1 shobu@nixos" ]; openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKsu+4S+BHmypQTq2IR9y+ihvbF7sXbBznKtIjVAeHJ1 shobu@nixos"
];
}; };
users.users.root = { users.users.root = {
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKsu+4S+BHmypQTq2IR9y+ihvbF7sXbBznKtIjVAeHJ1 shobu@nixos" ]; openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKsu+4S+BHmypQTq2IR9y+ihvbF7sXbBznKtIjVAeHJ1 shobu@nixos"
];
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
lunarvim lunarvim
wget wget
@@ -108,4 +126,3 @@
system.stateVersion = "24.11"; # Did you read the comment? system.stateVersion = "24.11"; # Did you read the comment?
} }

View File

@@ -1,2 +1 @@
{ ... }: { } { ... }: { }

View File

@@ -12,7 +12,8 @@
}; };
# Flake outputs # Flake outputs
outputs = inputs@{ outputs =
inputs@{
self, self,
nixpkgs, nixpkgs,
nix-minecraft, nix-minecraft,

View File

@@ -1,46 +1,60 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }: {
config,
lib,
pkgs,
modulesPath,
...
}:
{ {
imports = imports = [
[ (modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "sd_mod" "sdhci_pci" ]; boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"sd_mod"
"sdhci_pci"
];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/disk/by-uuid/09c733e4-b0df-4416-977b-50d9feb225fc"; device = "/dev/disk/by-uuid/09c733e4-b0df-4416-977b-50d9feb225fc";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=root" ]; options = [ "subvol=root" ];
}; };
fileSystems."/nix" = fileSystems."/nix" = {
{ device = "/dev/disk/by-uuid/09c733e4-b0df-4416-977b-50d9feb225fc"; device = "/dev/disk/by-uuid/09c733e4-b0df-4416-977b-50d9feb225fc";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=nix" ]; options = [ "subvol=nix" ];
}; };
fileSystems."/home" = fileSystems."/home" = {
{ device = "/dev/disk/by-uuid/09c733e4-b0df-4416-977b-50d9feb225fc"; device = "/dev/disk/by-uuid/09c733e4-b0df-4416-977b-50d9feb225fc";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=home" ]; options = [ "subvol=home" ];
}; };
fileSystems."/swap" = fileSystems."/swap" = {
{ device = "/dev/disk/by-uuid/09c733e4-b0df-4416-977b-50d9feb225fc"; device = "/dev/disk/by-uuid/09c733e4-b0df-4416-977b-50d9feb225fc";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=swap" ]; options = [ "subvol=swap" ];
}; };
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/D1B9-8019"; device = "/dev/disk/by-uuid/D1B9-8019";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ]; options = [
"fmask=0077"
"dmask=0077"
];
}; };
swapDevices = [ ]; swapDevices = [ ];

View File

@@ -1,9 +1,15 @@
{pkgs, inputs, ...}: {
pkgs,
inputs,
lib,
...
}:
let let
modpack = pkgs.fetchPackwizModpack { modpack = pkgs.fetchPackwizModpack {
url = "file:///${inputs.testing-grounds.modpack}/pack.toml"; url = "file:///${inputs.testing-grounds.modpack}/pack.toml";
packHash = "sha256-+taYj4uroLNxM4Nia3n+5P1Y/g6dzE6Iq13TsZgk4mU="; packHash = "sha256-+taYj4uroLNxM4Nia3n+5P1Y/g6dzE6Iq13TsZgk4mU=";
}; };
reclamation = inputs.reclamation.packages.${pkgs.stdenv.system};
in in
{ {
imports = [ inputs.nix-minecraft.nixosModules.minecraft-servers ]; imports = [ inputs.nix-minecraft.nixosModules.minecraft-servers ];
@@ -14,6 +20,28 @@ in
eula = true; eula = true;
openFirewall = true; openFirewall = true;
servers.reclamation = {
enable = false;
package = pkgs.fabricServers.fabric;
symlinks = {
"mods" = "${reclamation.modpack}/mods";
"FTBLang" = "${reclamation.modpack}/FTBLang";
"defaultconfigs" = "${reclamation.modpack}/defaultconfigs";
"ressourcepacks" = "${reclamation.modpack}/ressourcepacks";
"config" = "${reclamation.modpack}/config";
"kubejs" = "${reclamation.modpack}/kubejs";
"patchouli_books" = "${reclamation.modpack}/patchouli_books";
"server.dat" = "${reclamation.modpack}/server.dat";
};
serverProperties = {
server-port = 43001;
motd = "all hail the gorgon v3.14";
allow-flight = true;
};
};
servers.testing-grounds = { servers.testing-grounds = {
enable = true; enable = true;

View File

@@ -1,9 +1,16 @@
{ inputs, ... }: { inputs, ... }:
let let
striped-front = inputs.striped-front; # striped-front = inputs.striped-front;
in {
networking.firewall.allowedTCPPorts = [ 80 443 8448 ]; sin-address = "192.168.1.14";
in
{
networking.firewall.allowedTCPPorts = [
80
443
8448
];
services.nginx = { services.nginx = {
enable = true; enable = true;
@@ -18,7 +25,7 @@ in {
forceSSL = true; forceSSL = true;
locations."/" = { locations."/" = {
proxyPass = "http://10.0.0.4:${port}"; proxyPass = "http://${sin-address}:${port}";
proxyWebsockets = true; proxyWebsockets = true;
extraConfig = '' extraConfig = ''
proxy_ssl_server_name on; proxy_ssl_server_name on;
@@ -57,7 +64,7 @@ in {
forceSSL = true; forceSSL = true;
locations."/" = { locations."/" = {
proxyPass = "http://10.0.0.4:8001"; proxyPass = "http://${sin-address}:8001";
extraConfig = '' extraConfig = ''
proxy_ssl_server_name on; proxy_ssl_server_name on;
''; '';
@@ -68,25 +75,25 @@ in {
forceSSL = true; forceSSL = true;
locations."/" = { locations."/" = {
proxyPass = "http://10.0.0.4:8000"; proxyPass = "http://${sin-address}:8000";
proxyWebsockets = true; proxyWebsockets = true;
extraConfig = '' extraConfig = ''
proxy_ssl_server_name on; proxy_ssl_server_name on;
''; '';
}; };
}; };
"striped.shobu.fr" = { # "striped.shobu.fr" = {
enableACME = true; # enableACME = true;
forceSSL = true; # forceSSL = true;
root = "${striped-front.packages.x86_64-linux.default}/dist"; # root = "${striped-front.packages.x86_64-linux.default}/dist";
}; # };
"dashboard.shobu.fr" = { "dashboard.shobu.fr" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
locations."/" = { locations."/" = {
proxyPass = "http://10.0.0.4:8082"; proxyPass = "http://${sin-address}:8082";
}; };
}; };
"git.shobu.fr" = { "git.shobu.fr" = {
@@ -94,7 +101,7 @@ in {
forceSSL = true; forceSSL = true;
locations."/" = { locations."/" = {
proxyPass = "http://10.0.0.4:3000"; proxyPass = "http://${sin-address}:3000";
}; };
}; };
"files.shobu.fr" = { "files.shobu.fr" = {
@@ -102,7 +109,10 @@ in {
forceSSL = true; forceSSL = true;
locations."/" = { locations."/" = {
proxyPass = "http://10.0.0.4:8086"; proxyPass = "http://${sin-address}:8086";
extraConfig = ''
proxy_set_header X-Real-IP $remote_addr;
'';
}; };
}; };
# "matrix.shobu.fr" = { # "matrix.shobu.fr" = {
@@ -111,9 +121,9 @@ in {
# locations."/".extraConfig = '' # locations."/".extraConfig = ''
# return 404; # return 404;
# ''; # '';
# locations."/_matrix".proxyPass = "http://10.0.0.4:8008"; # locations."/_matrix".proxyPass = "http://${sin-address}:8008";
# locations."/_synapse/client".proxyPass = "http://10.0.0.4:8008"; # locations."/_synapse/client".proxyPass = "http://${sin-address}:8008";
# locations."/.well-known/matrix/server".proxyPass = "http://10.0.0.4:8008/.well-known/matrix/server"; # locations."/.well-known/matrix/server".proxyPass = "http://${sin-address}:8008/.well-known/matrix/server";
# }; # };
} }
); );

View File

@@ -1,4 +1,5 @@
{inputs, ...}: { { inputs, ... }:
{
# virtualisation.docker = { # virtualisation.docker = {
# enable = true; # enable = true;
# storageDriver = "btrfs"; # storageDriver = "btrfs";

View File

@@ -1,10 +1,14 @@
{...}: { { ... }:
let
sin-address = "192.168.1.14";
in
{
boot.supportedFilesystems = [ "fuse.sshfs" ]; boot.supportedFilesystems = [ "fuse.sshfs" ];
programs.fuse.userAllowOther = true; programs.fuse.userAllowOther = true;
fileSystems = { fileSystems = {
"/mnt/shares/data" = { "/mnt/shares/data" = {
device = "shobu@10.0.0.4:/mnt/data/"; device = "shobu@${sin-address}:/mnt/data/";
fsType = "fuse.sshfs"; fsType = "fuse.sshfs";
options = [ options = [
"debug" "debug"

View File

@@ -1,7 +1,8 @@
{ inputs, ... }: { inputs, ... }:
let let
striped-back = inputs.striped-back; striped-back = inputs.striped-back;
in { in
{
imports = [ imports = [
striped-back.nixosModules.default striped-back.nixosModules.default
]; ];

View File

@@ -1,4 +1,5 @@
{striped-back, striped-front, ...}:{ { striped-back, striped-front, ... }:
{
imports = [ imports = [
./back.nix ./back.nix
]; ];

View File

@@ -1,6 +1,8 @@
{lib, ...}: let { lib, ... }:
let
ssh_port = 24658; ssh_port = 24658;
in { in
{
services = { services = {
gitea = { gitea = {
enable = true; enable = true;

View File

@@ -1,10 +1,56 @@
{nodes, ...}:{ {
nodes,
inputs,
pkgs,
...
}:
let
sin-address = "192.168.1.14";
unstable = import inputs.unstable { system = pkgs.system; };
in
{
imports = [ imports = [
./virtualisation.nix ./virtualisation.nix
]; ];
networking.nat.forwardPorts = [{ networking.nat.forwardPorts = [
{
sourcePort = nodes.sin.config.services.gitea.settings.server.SSH_PORT; sourcePort = nodes.sin.config.services.gitea.settings.server.SSH_PORT;
proto = "tcp"; proto = "tcp";
destination = "10.0.0.4:22"; destination = "${sin-address}:22";
}]; }
];
services.gitea-actions-runner.package = unstable.gitea-actions-runner;
# services.gitea-actions-runner.instances = {
# "gitea.shobu.fr-runner" = {
# enable = true;
# name = "gitea.shobu.fr-runner";
# url = nodes.sin.config.services.gitea.settings.server.ROOT_URL;
# token = "uEDPBW6Z9oItAKRtloVwis0LkPbD4OmV2w5esOhW";
# labels = [
# "ubuntu-22.04:docker://docker.gitea.com/runner-images:ubuntu-22.04"
# ];
# settings = {
# cache = {
# # Enable cache server to use actions/cache.
# enabled = true;
# # The directory to store the cache data.
# # If it's empty, the cache data will be stored in $HOME/.cache/actcache.
# dir = "";
# # The host of the cache server.
# # It's not for the address to listen, but the address to connect from job containers.
# # So 0.0.0.0 is a bad choice, leave it empty to detect automatically.
# host = "";
# # The port of the cache server.
# # 0 means to use a random available port.
# port = 0;
# # The external cache server URL. Valid only when enable is true.
# # If it's specified, act_runner will use this URL as the ACTIONS_CACHE_URL rather than start a server by itself.
# # The URL should generally end with "/".
# external_server = "";
# };
# };
# };
# };
} }

View File

@@ -1,4 +1,5 @@
{nodes, pkgs, ...}: { { nodes, pkgs, ... }:
{
systemd.sockets.podman.socketConfig.Symlinks = [ systemd.sockets.podman.socketConfig.Symlinks = [
"/run/docker.sock" "/run/docker.sock"
]; ];
@@ -15,15 +16,19 @@
}; };
}; };
virtualisation.oci-containers.containers = let virtualisation.oci-containers.containers =
let
runner_config = pkgs.writeTextFile { runner_config = pkgs.writeTextFile {
name = "config.yml"; name = "config.yml";
text = '' text = ''
container: container:
network: "bridge" network: "host"
valid_volumes:
- "/var/nix/hosted-store"
''; '';
}; };
in { in
{
gitea-runner = { gitea-runner = {
image = "gitea/act_runner@sha256:8477d5b61b655caad4449888bae39f1f34bebd27db56cb15a62dccb3dcf3a944"; image = "gitea/act_runner@sha256:8477d5b61b655caad4449888bae39f1f34bebd27db56cb15a62dccb3dcf3a944";
autoStart = true; autoStart = true;

View File

@@ -0,0 +1,11 @@
#!/bin/sh
set -eu
set -f
if ! nix --version; then
exit 0
fi
export IFS=' '
echo "Uploading paths" $OUT_PATHS
exec nix copy --to "ssh://root@localhost" $OUT_PATHS