fixed typos

This commit is contained in:
emily 2024-01-09 16:23:24 +01:00
parent a042d6bfe6
commit 19b0e9a5bb
Signed by: emily
GPG key ID: F6F4C66207FCF995
6 changed files with 17 additions and 21 deletions

View file

@ -11,7 +11,7 @@ with lib; {
kitty.terminfo
bat
ripgrep
utils-coreutils
uutils-coreutils
git
bmon
bottom

View file

@ -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;
'';
};
};
};
};

View file

@ -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";

View file

@ -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"

View file

@ -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
# ];
# };
};
};
}

View file

@ -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));
};
}