74 lines
2 KiB
Nix
74 lines
2 KiB
Nix
# 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
|
||
];
|
||
}
|