too much to mention

This commit is contained in:
2024-11-02 18:48:19 +01:00
parent 1dfce7fd9b
commit 11fd6bc478
17 changed files with 222 additions and 102 deletions

View File

@ -1,13 +1,22 @@
{ config, pkgs, ... }:
{
imports = [
./packages/default.nix
./virtualization.nix
./users.nix
./flatpak.nix
./hosts.nix
./yubikey.nix
];
config,
pkgs,
lib,
isServer ? false,
isWorkstation ? false,
...
}:
{
imports =
[
./packages/common/default.nix
./users.nix
./hosts.nix
./yubikey.nix
]
# Include packages based on whether this is a server or workstation.
++ lib.optional isServer ./packages/server/default.nix
++ lib.optional isWorkstation ./packages/workstation/default.nix;
# Bootloader.
boot.loader.systemd-boot.enable = true;
@ -16,8 +25,8 @@
# Enable networking
networking.networkmanager.enable = true;
# Set your time zone.
time.timeZone = "Europe/Amsterdam";
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Enable experimental nix-command flakes
nix = {
@ -27,6 +36,9 @@
'';
};
# Set your time zone.
time.timeZone = "Europe/Amsterdam";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
@ -49,33 +61,6 @@
services.tailscale.enable = true;
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Enable the OpenSSH daemon.
# services.openssh = {
# enable = true;
# port = 400;
# permitRootLogin = "no";
# passwordAuthentication = false;
# pubkeyAuthentication = true;
# };
# Open ports in the firewall.
networking.firewall = {
enable = true;
allowedTCPPorts = [
3389
3390
3391
];
allowedUDPPorts = [
3389
3390
3391
];
};
# 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. Its perfectly fine and recommended to leave