config/hosts/bolle/default.nix

85 lines
2.6 KiB
Nix
Raw Normal View History

2023-03-01 02:05:51 +01:00
{ config, pkgs, lib, ... }:
{
2023-03-01 02:21:24 +01:00
# Bootloader
2023-03-04 01:42:05 +01:00
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
2023-03-01 02:05:51 +01:00
imports = [
./hardware-configuration.nix
2023-03-12 05:14:28 +01:00
../../hardware/opengl-intel.nix
2023-06-24 19:11:49 +02:00
../../profiles/auto-upgrade.nix
2023-07-04 16:28:27 +02:00
../../profiles/sshd.nix
2023-03-01 02:05:51 +01:00
../../users # home-manager
../../users/pbsds
2023-03-12 05:14:28 +01:00
../../profiles/shell/base.nix
../../profiles/shell/archives.nix
../../profiles/shell/nix-utils.nix
../../profiles/shell/binfmt-emu.nix
2023-03-01 02:05:51 +01:00
2023-03-12 05:14:28 +01:00
#../../profiles/domeneshop-dyndns # TODO: secrets
2023-03-01 02:05:51 +01:00
#../../profiles/code-remote
2023-03-12 05:14:28 +01:00
#../../profiles/remote-builders
2023-03-01 02:05:51 +01:00
#../../profiles/autossh-reverse-tunnels
];
2023-06-24 19:11:49 +02:00
#services.domeneshop-updater.target = [ "bolle.pbsds.net" ]; # TODO: secrets
2023-03-01 02:05:51 +01:00
services.thermald.enable = true;
# Virtualization
#virtualisation.podman.enable = true;
#virtualisation.podman.dockerCompat = true; # alias docker to podman
2023-03-12 05:14:28 +01:00
#virtualisation.oci-containers.backend = "podman"; # default
2023-03-01 02:05:51 +01:00
# Networking
networking.networkmanager.enable = true;
2023-03-02 22:26:07 +01:00
/** /
2023-03-01 02:05:51 +01:00
#networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
#networking.iwd.enable = true
networking.interfaces.eno1.ipv4.addresses = [
{ address = "129.241.105.252"; prefixLength = 23; }
];
2023-03-02 22:26:07 +01:00
networking.defaultGateway.address = "192.241.104.1";
networking.defaultGateway.interface = "eno1";
#networking.useDHCP = true;
2023-03-01 02:05:51 +01:00
networking.nameservers = [
"129.241.0.200"
"129.241.0.201"
#"2001:700:300::200"
#"2001:700:300::201"
"8.8.8.8"
"1.1.1.1"
];
2023-03-02 22:26:07 +01:00
/**/
2023-03-01 02:05:51 +01:00
# Installed system packages
environment.systemPackages = with pkgs; [
cage
2023-03-12 05:14:28 +01:00
weston
2023-03-01 02:05:51 +01:00
];
# TODO: remove? Move?
programs.dconf.enable = true;
# System fonts
# Nice to have when X-forwading on headless machines
2023-03-12 05:14:28 +01:00
fonts.fontDir.enable = true; # creates /run/current-system/sw/share/X11/fonts
fonts.enableDefaultFonts = true; # dejavu, freefont, gyre, liberation, unifont, noto-fonts-emoji
2023-03-01 02:05:51 +01:00
fonts.fonts = with pkgs; [
noto-fonts # includes Cousine
noto-fonts-cjk
noto-fonts-emoji
noto-fonts-extra
];
# 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 = "22.11"; # Did you read the comment?
}