Move bootloader config info flake.nix

This commit is contained in:
Evie Litherland-Smith 2023-10-09 14:48:40 +01:00
parent 626a8508da
commit 90c066fc7a
6 changed files with 7 additions and 21 deletions

View file

@ -134,6 +134,10 @@
home-manager.nixosModules.home-manager
stylix.nixosModules.stylix
({ pkgs, ... }: {
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
programs.${shell}.enable = true;
system = { inherit stateVersion; };
networking = { inherit hostName; };

View file

@ -9,9 +9,6 @@ let
vpn-dev = "tun0";
port = 1194;
in {
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
users.mutableUsers = false;
system.autoUpgrade = {
allowReboot = lib.mkForce true;

View file

@ -1,7 +1 @@
{ config, pkgs, ... }:
{
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}
{ config, pkgs, ... }: { }

View file

@ -2,10 +2,6 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, lib, pkgs, ... }: {
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Setup keyfile
boot.initrd.secrets = { "/crypto_keyfile.bin" = null; };

View file

@ -5,9 +5,6 @@
{ config, pkgs, ... }:
{
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
# Setup keyfile

View file

@ -1,11 +1,9 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ ... }: {
{ ... }:
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
{
services.syncthing.settings.folders = {
"Archive".enable = false;
"Books".enable = false;