diff --git a/devices/disko/vds.nix b/devices/disko/vds.nix new file mode 100644 index 0000000..7c28981 --- /dev/null +++ b/devices/disko/vds.nix @@ -0,0 +1,32 @@ +{ + disko.devices = { + disk = { + my-disk = { + device = "/dev/vda"; + type = "disk"; + content = { + type = "gpt"; + partitions = { + ESP = { + type = "EF00"; + size = "500M"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + }; + }; + root = { + size = "100%"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + }; + }; + }; + }; + }; + }; + }; +} diff --git a/devices/vds.nix b/devices/vds.nix index 067ab25..82598f8 100755 --- a/devices/vds.nix +++ b/devices/vds.nix @@ -13,7 +13,7 @@ let (modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/profiles/qemu-guest.nix") - #./hardware/vds.nix + ./disco/vds.nix self.nixosModules.default #self.homeConfigurations.server.nixosModule # home-manager configuration module ]; @@ -21,6 +21,7 @@ let environment.systemPackages = map lib.lowPrio [ pkgs.curl pkgs.gitMinimal + pkgs.lazygit ]; boot.loader.grub = { @@ -46,10 +47,9 @@ let users = { root = { openssh.authorizedKeys.keys = [ - # change this to your ssh key - "# CHANGE" - ] - ++ (args.extraPublicKeys or [ ]); # this is used for unit-testing this module and can be removed if not needed + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKduJia+unaQQdN6X5syaHvnpIutO+yZwvfiCP4qKQ/P" + ]; + #++ (args.extraPublicKeys or [ ]); # this is used for unit-testing this module and can be removed if not needed }; "${inputs.zeroq.devices.admin}" = { openssh.authorizedKeys.keys = [