62 lines
1.3 KiB
Nix
62 lines
1.3 KiB
Nix
# Buckwheat configuration.nix
|
|
{ config, lib, pkgs, inputs, user, ... }:
|
|
let
|
|
hostname="fireweed";
|
|
in
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
];
|
|
boot = {
|
|
loader = {
|
|
systemd-boot = {
|
|
enable = true;
|
|
configurationLimit = 10;
|
|
};
|
|
efi.canTouchEfiVariables = true;
|
|
efi.efiSysMountPoint = "/boot/efi";
|
|
timeout = 2;
|
|
};
|
|
|
|
# Hardware-configuration edits
|
|
kernel.sysctl."net.ipv4.ip_forward" = 1;
|
|
|
|
# Clean /tmp at boot
|
|
tmp.cleanOnBoot = true;
|
|
};
|
|
networking = {
|
|
hostName = "${hostname}"; # Define your hostname.
|
|
firewall = {
|
|
# To disable the firewall altogether:
|
|
# enable = false;
|
|
allowedTCPPorts = [ 445 139 ];
|
|
allowedUDPPorts = [ 137 138 ];
|
|
};
|
|
# Proxy configuration
|
|
# proxy = {
|
|
# default = "http://user:password@proxy:port/";
|
|
# noProxy = "127.0.0.1,localhost,internal.domain";
|
|
# };
|
|
};
|
|
users.users.${user.name} = {
|
|
extraGroups = [ "davfs2" ];
|
|
packages = with pkgs; [
|
|
];
|
|
};
|
|
services = {
|
|
davfs2 = {
|
|
enable = true;
|
|
};
|
|
mullvad-vpn = {
|
|
enable = true;
|
|
package = pkgs.mullvad-vpn;
|
|
};
|
|
udisks2 = {
|
|
enable = true;
|
|
mountOnMedia = true;
|
|
};
|
|
# Enable automatic login for the user.
|
|
# getty.autologinUser = "${user.name}";
|
|
};
|
|
}
|