patch limesurvey to include nixos logo
Rok Garbas committed
Feb 10, 2022 at 08:51 UTC
c2b72ca8dbf31235e80bcbc7e19c3284b529e4df
2 files changed
+16
-5
survey/flake.nix
+16
-5
@@ -10,7 +10,17 @@
10
# https://github.com/NixOS/nixpkgs/pull/157832
11
inputs.nixpkgs.url = "github:garbas/nixpkgs/update-limesurvey";
12
13
- outputs = flakes @ { self, nixpkgs }: {
13
+ outputs = flakes @ { self, nixpkgs }:
14
+ let
15
+ customOverlay = final: prev: {
16
+ limesurvey = prev.limesurvey.overrideAttrs (old: {
17
+ installPhase = old.installPhase + ''
18
+ mkdir -p $out/share/limesurvey/upload/themes/survey/generalfiles/
19
+ ln -s ${./nixos-lores.png} $out/share/limesurvey/upload/themes/survey/generalfiles/
20
+ '';
21
+ });
22
+ };
23
+ in {
24
nixosConfigurations.survey = nixpkgs.lib.nixosSystem {
25
system = "x86_64-linux";
26
modules =
@@ -29,12 +39,13 @@
39
nix.package = pkgs.nixUnstable;
40
nix.registry.nixpkgs.flake = nixpkgs;
41
42
+ nixpkgs.overlays = [ customOverlay ];
43
+
44
# needed since we use latest nixpkgs and we should probably
45
# backport the limesurvey update to 21.11 channel
34
- nix.extraOptions = lib.mkForce
35
- ''
36
- experimental-features = nix-command flakes
37
- '';
46
+ nix.extraOptions = lib.mkForce ''
47
+ experimental-features = nix-command flakes
48
+ '';
49
50
users.users.root.openssh.authorizedKeys.keys = with import ../ssh-keys.nix; [ eelco garbas ];
51
survey/nixos-lores.png
Binary files /dev/null and b/survey/nixos-lores.png differ