summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorseth <[email protected]>2023-01-25 23:55:57 -0500
committerseth <[email protected]>2023-01-26 03:50:11 -0500
commitbfa889aef9f82eb853a5b37ebe7fdbd8d5ecdc34 (patch)
treec684c7a090b1f42f2623639f1967d6494ac05bef /util
parent6b126efdb4cf0b88f085c3f325fc6fd362268f19 (diff)
finish up refactor + add glados host
thanks replaycoding uwu
Diffstat (limited to 'util')
-rw-r--r--util/host.nix39
1 files changed, 21 insertions, 18 deletions
diff --git a/util/host.nix b/util/host.nix
index 6a58370..330edb6 100644
--- a/util/host.nix
+++ b/util/host.nix
@@ -1,28 +1,31 @@
-{nixpkgs, home-manager, ...}:
-
{
+ nixpkgs,
+ home-manager,
+ ...
+}: {
mkHost = {
name,
modules,
system ? "x86_64-linux",
pkgs,
}:
- pkgs.lib.nixosSystem {
- inherit system;
- modules =
- [
- ../hosts/common
+ with pkgs.lib;
+ nixosSystem {
+ inherit system;
+ modules =
+ [
+ ../hosts/common
- {
- networking.hostName = nixpkgs.lib.mkDefault name;
- }
+ {
+ networking.hostName = mkDefault name;
+ }
- home-manager.nixosModules.home-manager
- {
- home-manager.useGlobalPkgs = true;
- home-manager.useUserPackages = true;
- }
- ]
- ++ modules;
- };
+ home-manager.nixosModules.home-manager
+ {
+ home-manager.useGlobalPkgs = true;
+ home-manager.useUserPackages = true;
+ }
+ ]
+ ++ modules;
+ };
}