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, ... }:
|
outputs = inputs@{ self, nixpkgs, home-manager, microvm, ... }:
|
||||||
let
|
let
|
||||||
hostName = "nixos";
|
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
username = "tbarnouin";
|
username = "tbarnouin";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
${hostName} = nixpkgs.lib.nixosSystem {
|
nixos-hypervisor = nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/${hostName}/configuration.nix
|
./hosts/nixos-hypervisor/configuration.nix
|
||||||
{
|
{
|
||||||
networking.hostName = hostName;
|
networking.hostName = "nixos-hypervisor";
|
||||||
}
|
}
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = 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
|
microvm.nixosModules.host
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue