mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
123
This commit is contained in:
@@ -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
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user