2022-08-13 16:08:27 +00:00
|
|
|
|
{
|
2023-01-28 21:27:52 +00:00
|
|
|
|
config,
|
|
|
|
|
pkgs,
|
|
|
|
|
lib,
|
2023-09-12 20:07:05 +00:00
|
|
|
|
flake,
|
2023-01-28 21:27:52 +00:00
|
|
|
|
...
|
2023-09-12 20:07:05 +00:00
|
|
|
|
}:
|
|
|
|
|
with lib; let
|
|
|
|
|
psCfg = config.pub-solar;
|
|
|
|
|
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
|
|
|
|
|
in {
|
2022-08-13 18:15:22 +00:00
|
|
|
|
boot.loader.systemd-boot.enable = lib.mkForce false;
|
|
|
|
|
boot.loader.grub = {
|
|
|
|
|
enable = true;
|
|
|
|
|
efiSupport = true;
|
|
|
|
|
device = "nodev";
|
|
|
|
|
};
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
2023-09-12 20:07:05 +00:00
|
|
|
|
hardware.cpu.intel.updateMicrocode = true;
|
|
|
|
|
|
2023-10-03 12:55:54 +00:00
|
|
|
|
networking.hostName = "droppie";
|
|
|
|
|
|
2023-10-09 20:52:28 +00:00
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
|
|
|
|
|
pub-solar.core.disk-encryption-active = false;
|
|
|
|
|
|
2023-09-12 20:07:05 +00:00
|
|
|
|
# ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBZQSephFJU0NMbVbhwvVJ2/m6jcPYo1IsWCsoarqKin root@droppie
|
|
|
|
|
age.secrets."droppie-ssh-root.key" = {
|
|
|
|
|
file = "${flake.self}/secrets/droppie-ssh-root.key";
|
|
|
|
|
path = "/home/${psCfg.user.name}/.ssh/id_ed25519";
|
|
|
|
|
mode = "400";
|
|
|
|
|
owner = psCfg.user.name;
|
|
|
|
|
};
|
|
|
|
|
|
2022-08-13 16:08:27 +00:00
|
|
|
|
# This value determines the NixOS release from which the default
|
|
|
|
|
# settings for stateful data, like file locations and database versions
|
|
|
|
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
|
|
|
system.stateVersion = "21.11"; # Did you read the comment?
|
|
|
|
|
}
|