style: format with nix fmt

Currently uses `nixpkgs-fmt`
This commit is contained in:
reo101 2024-01-25 17:39:43 +02:00
parent a6efd4146b
commit 36e14ad3f6
Signed by: reo101
GPG key ID: 675AA7EF13964ACB
10 changed files with 267 additions and 263 deletions

View file

@ -132,7 +132,7 @@
maxCacheTtl = 86400;
pinentryFlavor = "tty";
enableSshSupport = true;
sshKeys = ["CFDE97EDC2FDB2FD27020A084F1E3F40221BAFE7"];
sshKeys = [ "CFDE97EDC2FDB2FD27020A084F1E3F40221BAFE7" ];
};
home.sessionVariables."PASSWORD_STORE_DIR" = "${config.xdg.dataHome}/password-store";

View file

@ -77,7 +77,7 @@
age.secrets."jeeves.user.password" = {
rekeyFile = "${inputs.self}/secrets/home/jeeves/user/password.age";
generator = {
script = {pkgs, ...}: ''
script = { pkgs, ... }: ''
${pkgs.mkpasswd}/bin/mkpasswd -m sha-516
'';
};
@ -124,16 +124,16 @@
# };
security.sudo = {
enable = true;
extraRules= [
extraRules = [
{
users = [
"jeeves"
];
commands = [
{
command = "ALL" ;
options= [ "NOPASSWD" ]; # "SETENV" # Adding the following could be a good idea
}
{
command = "ALL";
options = [ "NOPASSWD" ]; # "SETENV" # Adding the following could be a good idea
}
];
}
];

View file

@ -14,7 +14,7 @@
mode = "077";
rekeyFile = "${inputs.self}/secrets/home/jeeves/wireguard/key.age";
generator = {
script = {lib, pkgs, file, ...}: ''
script = { lib, pkgs, file, ... }: ''
priv=$(${pkgs.wireguard-tools}/bin/wg genkey)
${pkgs.wireguard-tools}/bin/wg pubkey <<< "$priv" > ${lib.escapeShellArg (lib.removeSuffix ".age" file + ".pub")}
echo "$priv"
@ -22,7 +22,7 @@
};
};
networking.firewall.allowedUDPPorts = [51820];
networking.firewall.allowedUDPPorts = [ 51820 ];
systemd.network = {
netdevs = {
"50-wg0" = {
@ -76,7 +76,7 @@
};
networks.wg0 = {
matchConfig.Name = "wg0";
address = ["10.100.0.1/24"];
address = [ "10.100.0.1/24" ];
networkConfig = {
IPMasquerade = "ipv4";
IPForward = true;