This commit is contained in:
2025-07-23 13:47:54 +03:00
parent fad346d5a7
commit 96b08dab64
2 changed files with 37 additions and 5 deletions
+32
View File
@@ -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 = "/";
};
};
};
};
};
};
};
}
+5 -5
View File
@@ -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 = [