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 + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix") (modulesPath + "/profiles/qemu-guest.nix")
#./hardware/vds.nix ./disco/vds.nix
self.nixosModules.default self.nixosModules.default
#self.homeConfigurations.server.nixosModule # home-manager configuration module #self.homeConfigurations.server.nixosModule # home-manager configuration module
]; ];
@@ -21,6 +21,7 @@ let
environment.systemPackages = map lib.lowPrio [ environment.systemPackages = map lib.lowPrio [
pkgs.curl pkgs.curl
pkgs.gitMinimal pkgs.gitMinimal
pkgs.lazygit
]; ];
boot.loader.grub = { boot.loader.grub = {
@@ -46,10 +47,9 @@ let
users = { users = {
root = { root = {
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
# change this to your ssh key "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKduJia+unaQQdN6X5syaHvnpIutO+yZwvfiCP4qKQ/P"
"# CHANGE" ];
] #++ (args.extraPublicKeys or [ ]); # this is used for unit-testing this module and can be removed if not needed
++ (args.extraPublicKeys or [ ]); # this is used for unit-testing this module and can be removed if not needed
}; };
"${inputs.zeroq.devices.admin}" = { "${inputs.zeroq.devices.admin}" = {
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [