From fcf6b18857fa8cfe618aac31c502576fa9475309 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Wed, 21 Sep 2022 17:22:11 +0200 Subject: Move hosts declaration to flake.nix --- flake.nix | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 3d61545..7338341 100644 --- a/flake.nix +++ b/flake.nix @@ -26,9 +26,27 @@ outputs = inputs @ { self, nixpkgs, home-manager, ... }: let user = "baitinq"; + + secrets = import ./secrets; + + dotfiles = ./dotfiles; + + hosts = [ + { host = "phobos"; system = "x86_64-linux"; extraOverlays = [ ]; timezone = secrets.main_timezone; location = secrets.main_location; } + { host = "luna"; system = "x86_64-linux"; extraOverlays = [ ]; timezone = secrets.main_timezone; location = secrets.main_location; } + ]; + + hardwares = [ + { hardware = "laptop"; } + { hardware = "chromebook"; } + { hardware = "virtualbox"; } + ]; + + commonInherits = { inherit (nixpkgs) lib; - inherit inputs user nixpkgs home-manager; + inherit inputs nixpkgs home-manager; + inherit user secrets dotfiles hosts hardwares; extraModules = [ ]; }; in -- cgit 1.4.1