Remove useless flake configuration

This commit is contained in:
2026-01-25 14:57:44 +01:00
parent 407a915da1
commit f7d66aa2a9
+4 -16
View File
@@ -1,7 +1,5 @@
{ {
inputs, inputs,
lib,
config,
... ...
}: }:
{ {
@@ -29,21 +27,11 @@
]; ];
}; };
nix = nix = {
let settings = {
flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs; experimental-features = "nix-command flakes";
in
{
settings = {
experimental-features = "nix-command flakes";
flake-registry = ""; # Opinionated: disable global registry
nix-path = config.nix.nixPath; # Workaround for https://github.com/NixOS/nix/issues/9574
};
# Opinionated: make flake registry and nix path match flake inputs
registry = lib.mapAttrs (_: flake: { inherit flake; }) flakeInputs;
nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs;
channel.enable = false; # Opinionated: disable channels
}; };
};
networking.hostName = "nixos"; networking.hostName = "nixos";
networking.firewall.enable = true; networking.firewall.enable = true;