newton: separate boot file

This commit is contained in:
Felix Buehler 2022-07-30 15:40:56 +02:00
parent 3ace595938
commit 672e35e94d
2 changed files with 11 additions and 7 deletions

10
nixos/newton/boot.nix Normal file
View file

@ -0,0 +1,10 @@
{ config, ... }:
{
boot.loader = {
timeout = 1;
grub = {
enable = true;
device = "/dev/sda";
};
};
}

View file

@ -1,6 +1,7 @@
{ config, ... }: { config, ... }:
{ {
imports = [ imports = [
./boot.nix
./hardware-configuration.nix ./hardware-configuration.nix
./disks.nix ./disks.nix
./network.nix ./network.nix
@ -19,7 +20,6 @@
../modules/webapps/navidrome.nix ../modules/webapps/navidrome.nix
../modules/webapps/paperless.nix ../modules/webapps/paperless.nix
../modules/webapps/radicale.nix ../modules/webapps/radicale.nix
#../modules/webapps/rss-bridge.nix
]; ];
networking.hostName = "newton"; networking.hostName = "newton";
@ -33,12 +33,6 @@
networking.firewall.allowedTCPPorts = [ networking.firewall.allowedTCPPorts = [
]; ];
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/sda";
#boot.loader.grub.copyKernels = true;
services.openssh.permitRootLogin = "prohibit-password"; services.openssh.permitRootLogin = "prohibit-password";
users.extraUsers.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOFx6OLwL9MbkD3mnMsv+xrzZHN/rwCTgVs758SCLG0h felix@thinkman" ]; users.extraUsers.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOFx6OLwL9MbkD3mnMsv+xrzZHN/rwCTgVs758SCLG0h felix@thinkman" ];