From 672e35e94dff6f70c2bce9589a66f582f9b6c439 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sat, 30 Jul 2022 15:40:56 +0200 Subject: [PATCH] newton: separate boot file --- nixos/newton/boot.nix | 10 ++++++++++ nixos/newton/configuration.nix | 8 +------- 2 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 nixos/newton/boot.nix diff --git a/nixos/newton/boot.nix b/nixos/newton/boot.nix new file mode 100644 index 0000000..387a8ea --- /dev/null +++ b/nixos/newton/boot.nix @@ -0,0 +1,10 @@ +{ config, ... }: +{ + boot.loader = { + timeout = 1; + grub = { + enable = true; + device = "/dev/sda"; + }; + }; +} diff --git a/nixos/newton/configuration.nix b/nixos/newton/configuration.nix index 2d56922..d4c7cda 100644 --- a/nixos/newton/configuration.nix +++ b/nixos/newton/configuration.nix @@ -1,6 +1,7 @@ { config, ... }: { imports = [ + ./boot.nix ./hardware-configuration.nix ./disks.nix ./network.nix @@ -19,7 +20,6 @@ ../modules/webapps/navidrome.nix ../modules/webapps/paperless.nix ../modules/webapps/radicale.nix - #../modules/webapps/rss-bridge.nix ]; networking.hostName = "newton"; @@ -33,12 +33,6 @@ 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"; users.extraUsers.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOFx6OLwL9MbkD3mnMsv+xrzZHN/rwCTgVs758SCLG0h felix@thinkman" ];