task | add vps target for nixos-anywhere
This commit is contained in:
parent
98e053689e
commit
90f4982bd8
4 changed files with 10 additions and 3 deletions
|
|
@ -48,7 +48,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
users.users.root = {
|
users.users.root = {
|
||||||
initialPassword = "d4u5c3k";
|
initialPassword = "changeme";
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINd8AdVbQQ/Fmw+b9mI8EMYqIoRkwmSwAOtmlte3incL don@loki"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINd8AdVbQQ/Fmw+b9mI8EMYqIoRkwmSwAOtmlte3incL don@loki"
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
./disk-config-vm.nix
|
./disk-config-vps.nix
|
||||||
];
|
];
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
{lib, ...}: {
|
{lib, ...}: {
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk.disk1 = {
|
disk.disk1 = {
|
||||||
device = lib.mkDefault "/dev/vda";
|
device = lib.mkDefault "/dev/sda";
|
||||||
type = "disk";
|
type = "disk";
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
|
|
|
||||||
|
|
@ -22,5 +22,12 @@
|
||||||
./configuration-vm.nix
|
./configuration-vm.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
nixosConfigurations.w2 = nixpkgs.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
modules = [
|
||||||
|
disko.nixosModules.disko
|
||||||
|
./configuration-vps.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue