mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
newton: separate boot file
This commit is contained in:
parent
3ace595938
commit
672e35e94d
2 changed files with 11 additions and 7 deletions
10
nixos/newton/boot.nix
Normal file
10
nixos/newton/boot.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
boot.loader = {
|
||||
timeout = 1;
|
||||
grub = {
|
||||
enable = true;
|
||||
device = "/dev/sda";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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" ];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue