forked from emily/nixfiles
fixed typos
This commit is contained in:
parent
a042d6bfe6
commit
19b0e9a5bb
6 changed files with 17 additions and 21 deletions
|
@ -11,7 +11,7 @@ with lib; {
|
|||
kitty.terminfo
|
||||
bat
|
||||
ripgrep
|
||||
utils-coreutils
|
||||
uutils-coreutils
|
||||
git
|
||||
bmon
|
||||
bottom
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, lib, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
extraConfig = ''
|
||||
add_header Strict-Transport-Security $hsts_header;
|
||||
|
@ -26,7 +26,7 @@ let
|
|||
useACMEHost = vhostCfg.redirectTo;
|
||||
globalRedirect = vhostCfg.redirectTo;
|
||||
} else (
|
||||
optionalAttrs !(builtins.hasAttr "useACMEHost" vhostCfg) {
|
||||
optionalAttrs (!(builtins.hasAttr "useACMEHost" vhostCfg)) {
|
||||
enableACME = true;
|
||||
});
|
||||
extraCfg = if builtins.hasAttr "extraConfig" vhostCfg
|
||||
|
@ -39,8 +39,8 @@ let
|
|||
in {
|
||||
networking = {
|
||||
hostName = "web02";
|
||||
firewall.allowedTCPPort = [ 80 443 ];
|
||||
firewall.allowedUDPPort = [ 443 ];
|
||||
firewall.allowedTCPPorts = [ 80 443 ];
|
||||
firewall.allowedUDPPorts = [ 443 ];
|
||||
};
|
||||
systemd.network.networks."98-eth-default" = {
|
||||
address = [
|
||||
|
@ -141,7 +141,6 @@ in {
|
|||
include ${pkgs.nginxQuic}/conf/fastcgi_params;
|
||||
include ${pkgs.nginxQuic}/conf/fastcgi.conf;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -9,10 +9,7 @@ with lib; {
|
|||
manageHostName = true;
|
||||
};
|
||||
|
||||
time.timeZone = mkDefault "Europe/Berlin";
|
||||
|
||||
system.autoUpgrade.enable = true;
|
||||
system.stateVersion = "23.05";
|
||||
nix.optimise.automatic = true;
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.options = "--delete-older-than 2d";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ config, pkgs, ... }: {
|
||||
users.users.emily = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.zsh;
|
||||
shell = pkgs.bash;
|
||||
extraGroups = [ "wheel" ];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA/+iN407+HsfHbbC3tfdA8Yf4TZ08qXQMb4tb/SDAs+ emily@card"
|
||||
|
|
18
flake.nix
18
flake.nix
|
@ -16,15 +16,15 @@
|
|||
./config/hosts/web02/configuration.nix
|
||||
];
|
||||
};
|
||||
ryuuko = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = attrs;
|
||||
modules = [
|
||||
./config/common
|
||||
./config/x1.nix
|
||||
./config/hosts/ryuuko/configuration.nix
|
||||
];
|
||||
};
|
||||
# ryuuko = nixpkgs.lib.nixosSystem {
|
||||
# system = "x86_64-linux";
|
||||
# specialArgs = attrs;
|
||||
# modules = [
|
||||
# ./config/common
|
||||
# ./config/x1.nix
|
||||
# ./config/hosts/ryuuko/configuration.nix
|
||||
# ];
|
||||
# };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ with lib; let
|
|||
useACMEHost = vhostCfg.redirectTo;
|
||||
globalRedirect = vhostCfg.redirectTo;
|
||||
} else (
|
||||
optionalAttrs !(builtins.hasAttr "useACMEHost" vhostCfg) {
|
||||
optionalAttrs (!(builtins.hasAttr "useACMEHost" vhostCfg)) {
|
||||
enableACME = true;
|
||||
});
|
||||
extraCfg = if builtins.hasAttr "extraConfig" vhostCfg
|
||||
|
@ -46,7 +46,7 @@ in {
|
|||
};
|
||||
};
|
||||
config = {
|
||||
services.nginx.virtualHosts = createHostFunc (cfg);
|
||||
services.nginx.virtualHosts = mkIf (cfg != null) (createHostFunc (cfg));
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue