new_nix/hosts/hummingbird/configuration.nix
2025-03-16 19:45:20 +01:00

74 lines
2 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{
pkgs,
inputs,
...
}: {
imports = [
inputs.home-manager.nixosModules.home-manager
../common/global
../common/users/luna
# optional stuff
../common/optional/gnome.nix
../common/optional/pipewire.nix
../common/optional/flatpak.nix
../common/optional/ckb-next.nix
../common/optional/docker.nix
# Include the results of the hardware scan.
./hardware-configuration.nix
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# mask dev-tpmrm0.device
systemd.units."dev-tpmrm0.device".enable = false;
networking.hostName = "hummingbird"; # Define your hostname.
# Enable networking
networking.networkmanager.enable = true;
# Configure keymap in X11
services.xserver.xkb = {
layout = "de";
variant = "";
};
# Configure console keymap
console.keyMap = "de";
# Enable CUPS to print documents.
services.printing.enable = true;
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
# wget
gnome-menus
inputs.nix-software-center.packages.${system}.nix-software-center
inputs.nixos-conf-editor.packages.${system}.nixos-conf-editor
];
# ssh agent
programs.ssh.startAgent = true;
programs.steam = {
enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
};
nixpkgs.overlays = [
inputs.nix-vscode-extensions.overlays.default
];
}