init
This commit is contained in:
43
configuration.nix
Normal file
43
configuration.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
modulesPath,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
./disko.nix
|
||||
./impermanence.nix
|
||||
];
|
||||
|
||||
# boot
|
||||
boot.loader.grub = {
|
||||
efiSupport = true;
|
||||
efiInstallAsRemovable = true;
|
||||
};
|
||||
|
||||
# cloud-init
|
||||
networking.useDHCP = false;
|
||||
services.cloud-init = {
|
||||
enable = true;
|
||||
network.enable = true;
|
||||
};
|
||||
|
||||
# ssh
|
||||
services.openssh.enable = true;
|
||||
|
||||
# root
|
||||
users.mutableUsers = false;
|
||||
users.users.root = {
|
||||
packages = [
|
||||
pkgs.dust
|
||||
pkgs.git
|
||||
pkgs.neovim
|
||||
pkgs.tree
|
||||
];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJy2VD362wUcu0lKj2d6OIU8dbAna0Lu/NaAYIj8gdIA andromeda@lenovo"
|
||||
];
|
||||
};
|
||||
system.stateVersion = "26.05";
|
||||
}
|
||||
Reference in New Issue
Block a user