This repository has been archived on 2024-04-14. You can view files and clone it, but cannot push or open issues or pull requests.
nixos-dotfiles/system/configuration.nix

164 lines
3.4 KiB
Nix
Raw Normal View History

2022-08-07 16:11:24 +01:00
# 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, pkgs, ... }:
{
imports =
[
# Include the results of the hardware scan.
./hardware-configuration.nix
];
2022-08-11 08:59:55 +01:00
nixpkgs.config = {
allowUnfree = true;
};
2022-08-07 16:11:24 +01:00
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot = {
enable = true;
configurationLimit = 10;
};
boot.loader.efi.canTouchEfiVariables = true;
boot.initrd.availableKernelModules = [ "amdgpu" ];
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelModules = [ "i2c-dev" "i2c-piix4" ];
networking.hostName = "terra"; # Define your hostname.
# Set your time zone.
time.timeZone = "Europe/Vienna";
# Select internationalisation properties.
2022-08-14 21:20:39 +01:00
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
LC_NUMERIC = "de_AT.UTF-8";
LC_TIME = "de_AT.UTF-8";
LC_MONETARY = "de_AT.UTF-8";
LC_MEASUREMENT = "de_AT.UTF-8";
LC_IDENTIFICATION = "de_AT.UTF-8";
};
};
2022-08-07 16:11:24 +01:00
console = {
font = "Lat2-Terminus16";
2022-08-08 10:01:42 +01:00
keyMap = "us-acentos";
2022-08-07 16:11:24 +01:00
};
hardware.opengl = {
enable = true;
extraPackages = [
pkgs.libvdpau-va-gl
];
driSupport = true;
driSupport32Bit = true;
};
hardware.steam-hardware.enable = true;
hardware.bluetooth.enable = true;
# Enable sound.
sound.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
security.doas.enable = true;
security.sudo.enable = false;
security.doas.extraRules = [{
users = [ "manuel" ];
keepEnv = true;
persist = true;
}];
2022-08-14 21:20:39 +01:00
security.polkit.enable = true;
programs.fish.enable = true;
2022-08-07 16:11:24 +01:00
# Define a user account. Don't forget to set a password with passwd.
users.users.manuel = {
isNormalUser = true;
2022-08-14 21:20:39 +01:00
extraGroups = [ "users" "wheel" "audio" "video" "games" "input" "geoclue" ]; # Enable sudo for the user.
2022-08-07 16:11:24 +01:00
shell = pkgs.fish;
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
2022-08-07 16:37:11 +01:00
git
2022-08-07 16:11:24 +01:00
links2
ripgrep
fd
htop
openrgb
];
2022-08-14 21:20:39 +01:00
environment.pathsToLink = [ "/share/zsh" ];
2022-08-07 16:11:24 +01:00
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# List services that you want to enable:
services.udev.packages = [ pkgs.openrgb ];
programs.dconf.enable = true;
services.geoclue2 = {
enable = true;
appConfig."gammastep".isAllowed = true;
appConfig."gammastep".isSystem = false;
};
services.gnome.gnome-keyring.enable = true;
2022-08-14 21:20:39 +01:00
2022-08-07 16:11:24 +01:00
xdg.portal = {
enable = true;
2022-08-08 10:01:42 +01:00
wlr.enable = true;
2022-08-07 16:11:24 +01:00
extraPortals = [
pkgs.xdg-desktop-portal-gtk
];
};
services.openssh = {
enable = true;
};
2022-08-14 21:20:39 +01:00
services.printing = {
enable = true;
drivers = [ pkgs.cnijfilter2 ];
};
services.avahi = {
enable = true;
nssmdns = true;
};
2022-08-07 16:11:24 +01:00
nix.gc = {
persistent = true;
automatic = true;
};
2022-08-07 17:52:09 +01:00
nix.extraOptions = ''
experimental-features = nix-command flakes
warn-dirty = false
'';
2022-08-07 16:11:24 +01:00
system.stateVersion = "22.05"; # Did you read the comment?
}