iron: update old entrypoint configuration

This commit is contained in:
Primrose 2025-12-08 23:57:03 +08:00
parent 6783ce6f72
commit 9627e74f1d
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
2 changed files with 23 additions and 25 deletions

View file

@ -35,34 +35,37 @@ in
nix = { nix = {
distributedBuilds = true; distributedBuilds = true;
settings.builders-use-substitutes = true; settings.builders-use-substitutes = true;
# don't use `nixpkgs.flake.source`, it uses flake so it double fetches
nixPath = [ "nixpkgs=${sources.nixpkgs}" ];
}; };
nixpkgs = { nixpkgs = {
overlays = overlays = map import [
map import [ ../overlays/agenix.nix
../overlays/agenix.nix ../overlays/disko.nix
../overlays/disko.nix ../overlays/nur.nix
../overlays/nur.nix ../overlays/nix-tree.nix
../overlays/nix-tree.nix ../overlays/nil.nix
../overlays/nil.nix ../overlays/dix.nix
../overlays/dix.nix
../packages/overlay.nix ../packages/overlay.nix
]
# use lix everywhere and wrap it with nom # use lix everywhere and wrap it with nom
++ [ ../overlays/lix.nix
(import (sources.lix-module + "/overlay.nix") { inherit (sources) lix; }) ../overlays/nix-monitored.nix
(import ../overlays/nix-monitored.nix) ];
];
# Set NIX_PATH and flake registry at the same time
# https://github.com/NixOS/nixpkgs/pull/254405
flake.source = sources.nixpkgs;
}; };
nix.package = pkgs.nix-monitored; nix.package = pkgs.nix-monitored;
system.nixos.version = lib.substring 0 8 sources.nixpkgs.revision; system.nixos =
let
rev = lib.substring 0 8 sources.nixpkgs.revision;
in
{
versionSuffix = "-git:${rev}";
revision = rev;
};
} }
# #

View file

@ -4,12 +4,7 @@
... ...
}: }:
{ {
users.users.root.openssh.authorizedKeys.keys = users.users.root.openssh.authorizedKeys.keys = import ../../../identities.nix;
let
# TODO: put iron keys in identities
ids = import ../../../identities.nix;
in
builtins.concatMap builtins.attrValues (builtins.attrValues ids);
networking = { networking = {
networkmanager.enable = lib.mkForce false; networkmanager.enable = lib.mkForce false;