diff options
| author | ReplayCoding <[email protected]> | 2023-01-25 17:47:54 -0800 |
|---|---|---|
| committer | seth <[email protected]> | 2023-01-26 03:50:03 -0500 |
| commit | 6b126efdb4cf0b88f085c3f325fc6fd362268f19 (patch) | |
| tree | a8baf84aaae4af35040c5745fe4feeae42dcdb56 /util | |
| parent | 7608b3701bf43502a9d3e5752b5f4cd9643f126b (diff) | |
help
Diffstat (limited to 'util')
| -rw-r--r-- | util/default.nix | 3 | ||||
| -rw-r--r-- | util/host.nix | 10 |
2 files changed, 5 insertions, 8 deletions
diff --git a/util/default.nix b/util/default.nix deleted file mode 100644 index adfffd7..0000000 --- a/util/default.nix +++ /dev/null @@ -1,3 +0,0 @@ -_: { - host = import ./host.nix; -} diff --git a/util/host.nix b/util/host.nix index 18e87a9..6a58370 100644 --- a/util/host.nix +++ b/util/host.nix @@ -1,20 +1,20 @@ -{lib, ...}: -with lib; { +{nixpkgs, home-manager, ...}: + +{ mkHost = { name, modules, system ? "x86_64-linux", pkgs, }: - nixosSystem { + pkgs.lib.nixosSystem { inherit system; modules = [ ../hosts/common { - nixpkgs.pkgs = pkgs; - networking.hostName = mkDefault name; + networking.hostName = nixpkgs.lib.mkDefault name; } home-manager.nixosModules.home-manager |
