fix build
This commit is contained in:
parent
d4fddef96b
commit
8ba9163b39
|
@ -3,7 +3,7 @@ let configPath = "/etc/nixos";
|
||||||
in {
|
in {
|
||||||
update-system = pkgs.writeHaskellScript {
|
update-system = pkgs.writeHaskellScript {
|
||||||
name = "update-system";
|
name = "update-system";
|
||||||
bins = [ nixos-rebuild pkgs.git ];
|
bins = [ nixos-rebuild ];
|
||||||
} ''
|
} ''
|
||||||
privatePath = "${configPath}/private"
|
privatePath = "${configPath}/private"
|
||||||
canaryPath = privatePath <> "/submodule-is-checked-out"
|
canaryPath = privatePath <> "/submodule-is-checked-out"
|
||||||
|
@ -11,8 +11,8 @@ in {
|
||||||
main = do
|
main = do
|
||||||
paths <- myNixPath "${configPath}"
|
paths <- myNixPath "${configPath}"
|
||||||
args <- getArgs
|
args <- getArgs
|
||||||
bracket (rm canaryPath) (\() -> git "-C" privatePath "restore" canaryPath) $ \() ->
|
bracket (rm canaryPath) (\() -> exe "/run/wrappers/bin/sudo" "-u" "maralorn" "git" "-C" privatePath "restore" canaryPath) $ \() ->
|
||||||
nixos_rebuild (paths ++ ["build"] ++ remoteBuildParams ++ fmap toString args)
|
nixos_rebuild (paths ++ ["build", "--no-out-link"] ++ remoteBuildParams ++ fmap toString args)
|
||||||
nixos_rebuild (paths ++ ["switch"] ++ fmap toString args)
|
nixos_rebuild (paths ++ ["switch"] ++ fmap toString args)
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
locations = {
|
locations = {
|
||||||
"/" = {
|
"/" = {
|
||||||
|
@ -16,8 +16,9 @@ in {
|
||||||
security.acme.certs."hera.m-0.eu".keyType = "rsa4096";
|
security.acme.certs."hera.m-0.eu".keyType = "rsa4096";
|
||||||
services = {
|
services = {
|
||||||
nginx = {
|
nginx = {
|
||||||
enable = true;
|
enable = lib.mkForce pkgs.withSecrets;
|
||||||
virtualHosts."tasks.maralorn.de" = {
|
virtualHosts = {
|
||||||
|
"tasks.maralorn.de" = {
|
||||||
basicAuthFile = pkgs.privatePath "basic-auth/kassandra";
|
basicAuthFile = pkgs.privatePath "basic-auth/kassandra";
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
@ -28,17 +29,18 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
virtualHosts."hera.m-0.eu" = {
|
"hera.m-0.eu" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
inherit locations;
|
inherit locations;
|
||||||
};
|
};
|
||||||
virtualHosts."maralorn.de" = {
|
"maralorn.de" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
inherit locations;
|
inherit locations;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ with lib; {
|
||||||
network = {
|
network = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ssh = {
|
ssh = {
|
||||||
enable = true;
|
enable = pkgs.withSecrets;
|
||||||
authorizedKeys = config.users.users.root.openssh.authorizedKeys.keys;
|
authorizedKeys = config.users.users.root.openssh.authorizedKeys.keys;
|
||||||
hostKeys = [ config.m-0.server.initSSHKey ];
|
hostKeys = [ config.m-0.server.initSSHKey ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue