add nixos-test-vm to the flake
This commit is contained in:
parent
ccbd0de798
commit
d1abfefc6f
16
flake.nix
16
flake.nix
|
@ -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;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
|
@ -4,12 +4,11 @@
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
../../modules/desktop.nix
|
../../modules/common.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "nixos-test-vm";
|
|
||||||
interfaces.enp0s18.useDHCP = true;
|
interfaces.enp0s18.useDHCP = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue