style: format with nix fmt
Currently uses `nixpkgs-fmt`
This commit is contained in:
parent
a6efd4146b
commit
36e14ad3f6
10 changed files with 267 additions and 263 deletions
|
@ -132,7 +132,7 @@
|
|||
maxCacheTtl = 86400;
|
||||
pinentryFlavor = "tty";
|
||||
enableSshSupport = true;
|
||||
sshKeys = ["CFDE97EDC2FDB2FD27020A084F1E3F40221BAFE7"];
|
||||
sshKeys = [ "CFDE97EDC2FDB2FD27020A084F1E3F40221BAFE7" ];
|
||||
};
|
||||
|
||||
home.sessionVariables."PASSWORD_STORE_DIR" = "${config.xdg.dataHome}/password-store";
|
||||
|
|
|
@ -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
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue