refactor(system): flatten
This commit is contained in:
parent
ef1482a65a
commit
8298fc375a
42 changed files with 239 additions and 89 deletions
|
|
@ -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}" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -17,6 +17,7 @@ in
|
|||
};
|
||||
overlays = [
|
||||
(final: prev: {
|
||||
waybar = inputs.nixpkgs-wayland.packages.${prev.system}.waybar;
|
||||
zjstatus = inputs.zjstatus.packages.${prev.system}.default;
|
||||
})
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue