meta: reorganize nix-os and hosts to single directory nixos
This commit is contained in:
parent
be46e02c61
commit
cb05ce5b44
76 changed files with 54 additions and 52 deletions
25
nixos/hosts/vm-base.nix
Normal file
25
nixos/hosts/vm-base.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ lib, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
"${modulesPath}/virtualisation/qemu-vm.nix"
|
||||
../modules/account.nix
|
||||
../modules/core.nix
|
||||
../modules/core-desktop.nix
|
||||
../modules/locale.nix
|
||||
../modules/polkit/disable-shutdown.nix
|
||||
../modules/shell.nix
|
||||
../modules/udev.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
services.syncthing.enable = lib.mkForce false;
|
||||
virtualisation = {
|
||||
memorySize = 4096;
|
||||
};
|
||||
virtualisation.forwardPorts = [
|
||||
{ from = "host"; host.port = 2222; guest.port = 22; }
|
||||
];
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue