refactor(treewide): cleanup

This commit is contained in:
ooks-io 2024-04-30 20:20:35 +12:00
parent 2fe6c44941
commit 2d93503bbc
30 changed files with 76 additions and 273 deletions

View file

@ -1,7 +1,7 @@
{ config, lib, inputs, ... }:
let
inherit (lib) mkIf;
inherit (lib) mkIf mapAttrs mkDefault;
host = config.systemModules.host;
in
@ -10,13 +10,13 @@ in
nix = {
settings = {
trusted-users = [ "root" "@wheel" ];
auto-optimise-store = lib.mkDefault true;
auto-optimise-store = mkDefault true;
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
warn-dirty = false;
system-features = [ "kvm" "big-parallel" "nixos-test" ];
flake-registry = "";
};
registry = lib.mapAttrs (_: value: { flake = value; }) inputs;
registry = mapAttrs (_: value: { flake = value; }) inputs;
nixPath = [ "nixpkgs=${inputs.nixpkgs.outPath}" ];
};
};

View file

@ -6,7 +6,7 @@ let
in
{
config = mkIf host.type != "phone" {
config = mkIf (host.type != "phone") {
nixpkgs = {
overlays = builtins.attrValues outputs.overlays;
config = {