aux-config/systems/i686-linux/Rubtrm/default.nix

122 lines
3.4 KiB
Nix
Raw Normal View History

2024-12-10 19:20:45 +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, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, ... }:
{
imports =
[
./hardware.nix
];
2024-12-11 23:53:25 +01:00
# Configure Nix
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
substituters = [
"https://cache.games01.kb-one.de"
];
trusted-public-keys = [
2024-12-12 19:17:35 +01:00
"cache.game01.kb-one.de:XcqI+uobV7EoTKuRmnzYup/+oSfn8uLwnsiQFp8dk/g="
2024-12-11 23:53:25 +01:00
];
};
2024-12-20 01:52:06 +01:00
# nixpkgs.config.allowUnsupportedSystem = true;
nixpkgs.config.allowUnfree = true;
2024-12-11 23:53:25 +01:00
2024-12-10 19:20:45 +01:00
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
# Define on which hard drive you want to install Grub.
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
networking.hostName = "Rubtrm"; # Define your hostname.
networking.networkmanager.enable = true;
# Set your time zone.
time.timeZone = "Europe/Amsterdam";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = lib.mkForce "de";
useXkbConfig = true; # use xkb.options in tty.
};
# Enable the X11 windowing system.
services.xserver.enable = true;
services.xserver.videoDrivers = [ "modesetting" "fbdev" "vesa" "intel_drv" "intel-media-sdk" ];
2024-12-20 01:52:06 +01:00
# Enable Desktop Environment.
services.displayManager.sddm.enable = true;
2024-12-20 01:52:06 +01:00
# services.displayManager.sddm.wayland.enable = true;
# services.xserver.displayManager.lightdm.enable = true;
# services.desktopManager.plasma6.enable = true;
# services.xserver.desktopManager.plasma5.enable = true;
services.xserver.desktopManager.xfce.enable = true;
# services.xserver.desktopManager.lxqt.enable = true;
2024-12-10 19:20:45 +01:00
# Configure keymap in X11
services.xserver.xkb = {
layout = "de";
variant = "";
};
2024-12-10 19:20:45 +01:00
# Enable sound with pipewire.
2025-02-09 20:13:30 +01:00
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
2024-12-10 19:20:45 +01:00
# Enable touchpad support (enabled default in most desktopManager).
2024-12-20 01:52:06 +01:00
services.libinput.enable = true;
2024-12-10 19:20:45 +01:00
# Define a user account. Don't forget to set a password with passwd.
users.users.kb = {
isNormalUser = true;
description = "kB";
2024-12-20 01:52:06 +01:00
extraGroups = [ "wheel" "networkmanager" "input" ];
2024-12-10 19:20:45 +01:00
packages = with pkgs; [
tree
2025-02-09 20:13:30 +01:00
kb-one.numen
2024-12-10 19:20:45 +01:00
];
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
vim
wget
git
btop
fastfetch
];
# 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;
# };
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
2024-12-20 01:52:06 +01:00
# Needed for dotool to act on numen voice commands
services.udev.extraRules = ''
KERNEL=="uinput", GROUP="input", MODE="0660", OPTIONS+="static_node=uinput"
'';
2024-12-10 19:20:45 +01:00
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
system.stateVersion = "24.05"; # Did you read the comment?
}