mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
45 lines
795 B
Nix
45 lines
795 B
Nix
{ lib, primaryUser, ... }:
|
|
let
|
|
sharedOptions = {
|
|
isBtrfs = false;
|
|
isLinux = true;
|
|
profiles = {
|
|
server.local = true;
|
|
};
|
|
};
|
|
in
|
|
{
|
|
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
];
|
|
|
|
boot = {
|
|
loader.systemd-boot.enable = true;
|
|
loader.efi.canTouchEfiVariables = true;
|
|
};
|
|
|
|
networking = {
|
|
hostName = "winters";
|
|
hostId = "b7778a4a";
|
|
firewall.enable = true;
|
|
enableIPv6 = false;
|
|
firewall.allowedTCPPorts = [ 80 443 ];
|
|
};
|
|
|
|
|
|
swarselsystems = lib.recursiveUpdate
|
|
{
|
|
isImpermanence = false;
|
|
isSecureBoot = true;
|
|
isCrypted = true;
|
|
}
|
|
sharedOptions;
|
|
|
|
home-manager.users."${primaryUser}" = {
|
|
home.stateVersion = lib.mkForce "23.05";
|
|
swarselsystems = lib.recursiveUpdate
|
|
{ }
|
|
sharedOptions;
|
|
};
|
|
}
|