Switch to nixfmt

This commit is contained in:
Filippo Berto 2023-01-19 19:53:17 +01:00
parent 44794e2c3d
commit 5b974a203b
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED
63 changed files with 990 additions and 946 deletions

View file

@ -77,8 +77,7 @@ let
STOP
'';
};
in
{
in {
networking = {
hosts = { "127.0.0.1" = [ "ds.my.engine" "kdc.my.engine" "my.engine" ]; };

View file

@ -1,3 +1 @@
{
services.do-agent.enable = true;
}
{ services.do-agent.enable = true; }

View file

@ -4,8 +4,7 @@ let
url =
"https://github.com/notracking/hosts-blocklists/raw/master/dnsmasq/dnsmasq.blacklist.txt";
};
in
{
in {
networking.firewall.allowedTCPPorts = [ 53 ];
networking.firewall.allowedUDPPorts = [ 53 ];

View file

@ -1,16 +1,37 @@
{
nix.registry = {
agenix = {
from = { id = "agenix"; type = "indirect"; };
to = { type = "github"; owner = "ryantm"; repo = "agenix"; };
from = {
id = "agenix";
type = "indirect";
};
to = {
type = "github";
owner = "ryantm";
repo = "agenix";
};
};
my-templates = {
from = { id = "my-templates"; type = "indirect"; };
to = { type = "github"; owner = "bertof"; repo = "flake-templates"; };
from = {
id = "my-templates";
type = "indirect";
};
to = {
type = "github";
owner = "bertof";
repo = "flake-templates";
};
};
tex2nix = {
from = { id = "tex2nix"; type = "indirect"; };
to = { type = "github"; owner = "Mic92"; repo = "tex2nix"; };
from = {
id = "tex2nix";
type = "indirect";
};
to = {
type = "github";
owner = "Mic92";
repo = "tex2nix";
};
};
};
}

View file

@ -1,11 +1,10 @@
{ config, lib, ... }:
let
user_keys = user: lib.optionals
(builtins.hasAttr "bertof" config.users.users)
user_keys = user:
lib.optionals (builtins.hasAttr "bertof" config.users.users)
config.users.users.${user}.openssh.authorizedKeys.keys;
in
{
in {
# nix.buildMachines
nix.distributedBuilds = true;