96 lines
2.3 KiB
Nix
96 lines
2.3 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’).
|
||
{
|
||
config,
|
||
lib,
|
||
pkgs,
|
||
inputs,
|
||
...
|
||
}: {
|
||
imports = [
|
||
inputs.home-manager.nixosModules.home-manager
|
||
../common/global
|
||
|
||
# optional stuff
|
||
../common/optional/gnome.nix
|
||
../common/optional/pipewire.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;
|
||
|
||
|
||
|
||
# Enable touchpad support (enabled default in most desktopManager).
|
||
# services.xserver.libinput.enable = true;
|
||
|
||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||
users.users.luna = {
|
||
isNormalUser = true;
|
||
description = "luna";
|
||
extraGroups = ["networkmanager" "wheel"];
|
||
packages = with pkgs; [
|
||
# thunderbird
|
||
gnome-software
|
||
git
|
||
neovim
|
||
rustup
|
||
vscode.fhs
|
||
nix-inspect
|
||
protonvpn-gui
|
||
];
|
||
};
|
||
|
||
# flatpak
|
||
services.flatpak.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;
|
||
|
||
hardware.ckb-next.enable = 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
|
||
};
|
||
}
|