WS-KCNHUB/machines/kcnhub/configuration.nix

92 lines
2.9 KiB
Nix
Raw Normal View History

2023-07-25 13:25:23 -04:00
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
# Set of Modules Defining System Configuration
./modules.nix
2023-07-27 13:14:02 -04:00
# Set of System Wide Available Packages
./packages.nix
# Set of Users on This System
./users.nix
2023-07-25 13:25:23 -04:00
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "kcnhub";
time.timeZone = "America/Toronto";
# Enable the X11 windowing system.
services.xserver.enable = true;
# Enable the GNOME Desktop Environment.
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable sound.
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
# Disable Pulseaudio -- we get its features through pipewire
hardware.pulseaudio.enable = false;
# TODO: Define module for adding users & their ssh keys & what projects they have in their home folder
# Define a user account. Don't forget to set a password with passwd.
# users.users.alice = {
# isNormalUser = true;
# extraGroups = [ "wheel" ]; # Enable sudo for the user.
# packages = with pkgs; [
# firefox
# thunderbird
# ];
# };
# TODO: Make set of themed packages for packages that are available, e.g. Python packages, Matlab, Octave, etc.
environment.systemPackages = with pkgs; [
2023-07-27 16:15:53 -04:00
# Needed to manage Flake
2023-07-25 13:25:23 -04:00
git
2023-07-27 16:15:53 -04:00
# Needed to use secrets
sops
# Used for Key Generation
age
2023-07-25 13:25:23 -04:00
];
# TODO: Make services directory for with a nix for each service that is enabled and what options it has
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix.
# system.copySystemConfiguration = true;
# 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
# 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?
}