Declare hostname explicitly
This commit is contained in:
parent
38fba61f9c
commit
f1260cbc95
4 changed files with 4 additions and 5 deletions
|
@ -13,24 +13,23 @@
|
|||
|
||||
outputs = inputs@{ self, nixpkgs, home-manager, microvm, ... }:
|
||||
let
|
||||
hostName = "nixos";
|
||||
system = "x86_64-linux";
|
||||
username = "tbarnouin";
|
||||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
${hostName} = nixpkgs.lib.nixosSystem {
|
||||
nixos-hypervisor = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
./hosts/${hostName}/configuration.nix
|
||||
./hosts/nixos-hypervisor/configuration.nix
|
||||
{
|
||||
networking.hostName = hostName;
|
||||
networking.hostName = "nixos-hypervisor";
|
||||
}
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.${username} = import ./hosts/${hostName}/home.nix;
|
||||
home-manager.users.${username} = import ./hosts/nixos-hypervisor/home.nix;
|
||||
}
|
||||
microvm.nixosModules.host
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue