refactor(system): flatten

This commit is contained in:
ooks-io 2024-05-22 22:58:50 +12:00
parent ef1482a65a
commit 8298fc375a
42 changed files with 239 additions and 89 deletions

View file

@ -1,23 +0,0 @@
{ config, lib, inputs, ... }:
let
inherit (lib) mkIf mapAttrs mkDefault;
host = config.systemModules.host;
in
{
config = mkIf (host.type != "phone") {
nix = {
settings = {
trusted-users = [ "root" "@wheel" ];
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 = mapAttrs (_: value: { flake = value; }) inputs;
nixPath = [ "nixpkgs=${inputs.nixpkgs.outPath}" ];
};
};
}

View file

@ -17,6 +17,7 @@ in
};
overlays = [
(final: prev: {
waybar = inputs.nixpkgs-wayland.packages.${prev.system}.waybar;
zjstatus = inputs.zjstatus.packages.${prev.system}.default;
})
];