add nixos-test-vm to the flake

This commit is contained in:
Andreas Zweili 2022-01-01 15:26:53 +01:00
parent ccbd0de798
commit d1abfefc6f
3 changed files with 35 additions and 2 deletions

View File

@ -90,5 +90,21 @@
}
];
};
nixosConfigurations.nixos-test-vm = nixpkgs.lib.nixosSystem {
inherit system pkgs;
modules = [
networking.hostName = "nixos-test-vm";
./systems/proxmox-vm/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.${username} = import ./home-manager/headless.nix
{
inherit inputs system pkgs;
};
}
];
};
};
}

18
home-manager/headless.nix Normal file
View File

@ -0,0 +1,18 @@
{ pkgs, ... }:
{
imports = [
./common
./software/git
./software/vim
];
programs.git.userEmail = "andreas@zweili.ch";
programs.bash = {
enable = true;
shellAliases = {
management-server = "mosh --ssh='ssh -p 22' andreas@10.7.89.106 tmux a";
};
};
}

View File

@ -4,12 +4,11 @@
imports =
[
# Include the results of the hardware scan.
../../modules/desktop.nix
../../modules/common.nix
./hardware-configuration.nix
];
networking = {
hostName = "nixos-test-vm";
interfaces.enp0s18.useDHCP = true;
};
}