style: reformat all nix files
This commit is contained in:
parent
0b5daa99ed
commit
2dcb901ae1
8 changed files with 51 additions and 47 deletions
|
@ -21,7 +21,8 @@ let
|
|||
home.username = user;
|
||||
home.homeDirectory = "/home/${user}";
|
||||
}
|
||||
] ++ modules;
|
||||
]
|
||||
++ modules;
|
||||
};
|
||||
in
|
||||
{
|
||||
|
|
|
@ -29,7 +29,8 @@ let
|
|||
configPath = [
|
||||
"config"
|
||||
"content" # due to mkIf
|
||||
] ++ modulePath;
|
||||
]
|
||||
++ modulePath;
|
||||
in
|
||||
lib.updateManyAttrsByPath
|
||||
[
|
||||
|
|
|
@ -33,7 +33,8 @@ let
|
|||
categories = [
|
||||
"Network"
|
||||
"WebBrowser"
|
||||
] ++ lib.optional isSecure "Security";
|
||||
]
|
||||
++ lib.optional isSecure "Security";
|
||||
};
|
||||
in
|
||||
pkgs.runCommand pname { } ''
|
||||
|
|
|
@ -35,7 +35,8 @@
|
|||
count = 60000000;
|
||||
}
|
||||
];
|
||||
} // user;
|
||||
}
|
||||
// user;
|
||||
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
|
|
|
@ -30,7 +30,8 @@ in
|
|||
"luci-ssl"
|
||||
"nextdns"
|
||||
"tailscale"
|
||||
] ++ packages;
|
||||
]
|
||||
++ packages;
|
||||
|
||||
# TODO set up SSH config (register public keys, disable password login, ...)
|
||||
files = pkgs.runCommand "image-files" { } ''
|
||||
|
|
|
@ -85,8 +85,7 @@ in
|
|||
}
|
||||
];
|
||||
|
||||
systemd.services."notify@" =
|
||||
{
|
||||
systemd.services."notify@" = {
|
||||
onFailure = lib.mkForce [ ];
|
||||
}
|
||||
// optionalAttrs (cfg.method == "libnotify") {
|
||||
|
|
|
@ -53,7 +53,8 @@ in
|
|||
# reduce download bandwidth
|
||||
"--max-unused 10%"
|
||||
"--repack-cacheable-only"
|
||||
] ++ extraPruneOpts;
|
||||
]
|
||||
++ extraPruneOpts;
|
||||
}
|
||||
// (removeAttrs args [
|
||||
"name"
|
||||
|
|
|
@ -89,8 +89,7 @@ in
|
|||
wants = [ "tailscaled.service" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig.Type = "oneshot";
|
||||
script =
|
||||
''
|
||||
script = ''
|
||||
status=$(${config.systemd.package}/bin/systemctl show -P StatusText tailscaled.service)
|
||||
if [[ $status != Connected* ]]; then
|
||||
${cfg.package}/bin/tailscale up
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue