flake.lock: bump inputs, flake.nix: fix misc, add checks

This commit is contained in:
2025-12-05 02:30:39 +09:00
parent c4a6a02c84
commit 1c199b29cf
2 changed files with 14 additions and 5 deletions

6
flake.lock generated
View File

@@ -2,11 +2,11 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1742169275, "lastModified": 1764794580,
"narHash": "sha256-nkH2Edu9rClcsQp2PYBe8E6fp8LDPi2uDBQ6wyMdeXI=", "narHash": "sha256-UMVihg0OQ980YqmOAPz+zkuCEb9hpE5Xj2v+ZGNjQ+M=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5d9b5431f967007b3952c057fc92af49a4c5f3b2", "rev": "ebc94f855ef25347c314258c10393a92794e7ab9",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -29,9 +29,13 @@
}; };
}; };
checks = {
inherit (self.packages.${system}) pvv-calender-bot;
};
nixosModules.default = ./module.nix; nixosModules.default = ./module.nix;
overlays.${system}.default = prevPackages: finalPackages: { overlays.default = final: prev: {
inherit (self.packages.${system}) pvv-calendar-bot; inherit (self.packages.${system}) pvv-calendar-bot;
}; };
@@ -39,7 +43,7 @@
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
self.nixosModules.default self.nixosModules.default
{ nixpkgs.overlays = [ self.overlays."x86_64-linux".default ]; } { nixpkgs.overlays = [ self.overlays.default ]; }
{ {
boot.isContainer = true; boot.isContainer = true;
@@ -50,6 +54,11 @@
user = "testuser"; user = "testuser";
homeserver = "pvv.ntnu.no"; homeserver = "pvv.ntnu.no";
}; };
settings.database = {
host = "localhost";
user = "testuser";
passwordFile = pkgs.writeText "calendarDbPass" "oliveoil";
};
settings.secretsFile = pkgs.writeText "calendarSecrets" "snakeoil"; settings.secretsFile = pkgs.writeText "calendarSecrets" "snakeoil";
}; };
} }