mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore: nf-fmt-nix
This commit is contained in:
parent
7486517713
commit
9903866044
160 changed files with 4570 additions and 3019 deletions
|
|
@ -1,7 +1,4 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{pkgs, ...}: {
|
||||
fonts.packages = [
|
||||
pkgs.tamzen
|
||||
];
|
||||
|
|
|
|||
|
|
@ -14,13 +14,19 @@ in {
|
|||
hostName = mkOverride 25 name;
|
||||
nameservers' = [
|
||||
#{ address = "8.8.8.8"; host = "dns.google"; }
|
||||
{ address = "1.1.1.1"; host = "cloudflare-dns.com"; }
|
||||
{ address = "1.0.0.1"; host = "cloudflare-dns.com"; }
|
||||
{
|
||||
address = "1.1.1.1";
|
||||
host = "cloudflare-dns.com";
|
||||
}
|
||||
{
|
||||
address = "1.0.0.1";
|
||||
host = "cloudflare-dns.com";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
# work around https://github.com/NixOS/nixpkgs/issues/132646
|
||||
system.nssDatabases.hosts = mkIf config.services.resolved.enable (
|
||||
mkOrder 450 [ "files" ]
|
||||
mkOrder 450 ["files"]
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,12 +23,14 @@ in {
|
|||
lock = importJSON ../../flake.lock;
|
||||
mapFlake = name: let
|
||||
node = lock.nodes.${name};
|
||||
in {
|
||||
inherit (node.original) type;
|
||||
inherit (node.locked) lastModified rev narHash;
|
||||
} // optionalAttrs (node.original.type == "github") {
|
||||
inherit (node.original) repo owner;
|
||||
};
|
||||
in
|
||||
{
|
||||
inherit (node.original) type;
|
||||
inherit (node.locked) lastModified rev narHash;
|
||||
}
|
||||
// optionalAttrs (node.original.type == "github") {
|
||||
inherit (node.original) repo owner;
|
||||
};
|
||||
in {
|
||||
nixpkgs.to = mapFlake "nixpkgs";
|
||||
arc.to = mapFlake "arcexprs";
|
||||
|
|
@ -40,7 +42,7 @@ in {
|
|||
};
|
||||
};
|
||||
settings = {
|
||||
allowed-users = [ "@nixbuilder" ];
|
||||
allowed-users = ["@nixbuilder"];
|
||||
experimental-features = lib.optional (lib.versionAtLeast config.nix.package.version "2.4") "nix-command flakes";
|
||||
substituters = [
|
||||
"https://gensokyo-infrastructure.cachix.org"
|
||||
|
|
@ -67,7 +69,7 @@ in {
|
|||
};
|
||||
optimise = {
|
||||
automatic = mkAlmostDefault true;
|
||||
dates = mkDefault [ "03:25" ];
|
||||
dates = mkDefault ["03:25"];
|
||||
};
|
||||
};
|
||||
${
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue