nixify the manual

This commit is contained in:
Rouven Seifert 2023-10-23 10:27:30 +02:00
parent 75be7e22a3
commit 303888dfd9
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
3 changed files with 53 additions and 26 deletions

View file

@ -22,6 +22,26 @@
"type": "github" "type": "github"
} }
}, },
"ese-manual": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1698049587,
"narHash": "sha256-gNxpJdxSrpWMTBSGFO4HfXgr+FiAGtwEXCvxd6W8IUQ=",
"ref": "refs/heads/main",
"rev": "2d05abcd2b4e59db421c86fa9adaffa3dccb1086",
"revCount": 7,
"type": "git",
"url": "https://git.ifsr.de/ese/manual-website"
},
"original": {
"type": "git",
"url": "https://git.ifsr.de/ese/manual-website"
}
},
"flake-utils": { "flake-utils": {
"inputs": { "inputs": {
"systems": "systems" "systems": "systems"
@ -85,11 +105,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1697340827, "lastModified": 1697946153,
"narHash": "sha256-XlrR68N7jyaZ0bs8TPrhqcWG0IPG3pbjrKzJMpYOsos=", "narHash": "sha256-7k7qIwWLaYPgQ4fxmEdew3yCffhK6rM4I4Jo3X/79DA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nix-index-database", "repo": "nix-index-database",
"rev": "29977d0796c058bbcfb2df5b18eb5badf1711007", "rev": "5a2006282caaf32663cdcd582c5b18809c7d7d8d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -100,11 +120,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1697655685, "lastModified": 1697851979,
"narHash": "sha256-79Kuv+QdgsVc+rkibuAgWHnh8IXrLBTOKg5nM0Qvux0=", "narHash": "sha256-lJ8k4qkkwdvi+t/Xc6Fn74kUuobpu9ynPGxNZR6OwoA=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "80c1aab725151632ddc2a20caeb914e76dd0673c", "rev": "5550a85a087c04ddcace7f892b0bdc9d8bb080c8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -116,11 +136,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1697332183, "lastModified": 1697929210,
"narHash": "sha256-ACYvYsgLETfEI2xM1jjp8ZLVNGGC0onoCGe+69VJGGE=", "narHash": "sha256-RkQZif6QhswEwv7484mrKfIU8XmIWm+ED6llbr4IyxM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "0e1cff585c1a85aeab059d3109f66134a8f76935", "rev": "fb000224952bf7749a9e8b3779104ef7ea4465c8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -155,6 +175,7 @@
"root": { "root": {
"inputs": { "inputs": {
"course-management": "course-management", "course-management": "course-management",
"ese-manual": "ese-manual",
"kpp": "kpp", "kpp": "kpp",
"nix-index-database": "nix-index-database", "nix-index-database": "nix-index-database",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
@ -169,11 +190,11 @@
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
}, },
"locked": { "locked": {
"lastModified": 1697339241, "lastModified": 1697943852,
"narHash": "sha256-ITsFtEtRbCBeEH9XrES1dxZBkE1fyNNUfIyQjQ2AYQs=", "narHash": "sha256-DaBxUPaZhQ3yLCmAATshYB7qo7NwcMvSFWz9T3bjYYY=",
"owner": "Mic92", "owner": "Mic92",
"repo": "sops-nix", "repo": "sops-nix",
"rev": "51186b8012068c417dac7c31fb12861726577898", "rev": "30a0ba4a20703b4bfe047fe5def1fc24978e322c",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -7,12 +7,15 @@
nix-index-database.inputs.nixpkgs.follows = "nixpkgs"; nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
kpp.url = "github:fsr/kpp"; kpp.url = "github:fsr/kpp";
kpp.inputs.nixpkgs.follows = "nixpkgs"; kpp.inputs.nixpkgs.follows = "nixpkgs";
ese-manual.url = "git+https://git.ifsr.de/ese/manual-website";
ese-manual.inputs.nixpkgs.follows = "nixpkgs";
course-management = { course-management = {
url = "github:fsr/course-management"; url = "github:fsr/course-management";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
}; };
outputs = { self, nixpkgs, sops-nix, nix-index-database, kpp, course-management, ... }@inputs: outputs = { self, nixpkgs, sops-nix, nix-index-database, kpp, ese-manual, course-management, ... }@inputs:
{ {
packages."x86_64-linux".quitte = self.nixosConfigurations.quitte.config.system.build.toplevel; packages."x86_64-linux".quitte = self.nixosConfigurations.quitte.config.system.build.toplevel;
packages."x86_64-linux".default = self.packages."x86_64-linux".quitte; packages."x86_64-linux".default = self.packages."x86_64-linux".quitte;
@ -27,6 +30,7 @@
inputs.sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
inputs.kpp.nixosModules.default inputs.kpp.nixosModules.default
inputs.nix-index-database.nixosModules.nix-index inputs.nix-index-database.nixosModules.nix-index
ese-manual.nixosModules.default
course-management.nixosModules.default course-management.nixosModules.default
./hosts/quitte/configuration.nix ./hosts/quitte/configuration.nix
./modules/bacula.nix ./modules/bacula.nix

View file

@ -1,14 +1,16 @@
{ pkgs, config, lib, ... }: { pkgs, config, lib, ... }:
let let
domain = "manual.${config.networking.domain}"; domain = "manual.${config.networking.domain}";
in in
{ {
services.nginx = { services.ese-manual = {
enable = true; enable = true;
virtualHosts."${domain}" = { hostName = domain;
addSSL = true; };
enableACME = true; services.nginx = {
root = "/srv/web/manual-website/site"; virtualHosts."${domain}" = {
}; addSSL = true;
}; enableACME = true;
};
};
} }