101 lines
2.7 KiB
Nix
101 lines
2.7 KiB
Nix
{
|
||
config,
|
||
pkgs,
|
||
...
|
||
}: {
|
||
boot.loader.systemd-boot.enable = true;
|
||
boot.loader.efi.canTouchEfiVariables = true;
|
||
|
||
networking.hostName = "trochulus-hispidus";
|
||
|
||
networking.interfaces.eno1.useDHCP = true;
|
||
networking.interfaces.wlp2s0.useDHCP = true;
|
||
|
||
settings.minimalGnome.enable = true;
|
||
settings.printing.enable = true;
|
||
|
||
hardware = {
|
||
opengl = {
|
||
enable = true;
|
||
driSupport = true;
|
||
driSupport32Bit = true;
|
||
extraPackages = with pkgs; [
|
||
intel-media-driver
|
||
vaapiIntel
|
||
vaapiVdpau
|
||
libvdpau-va-gl
|
||
];
|
||
|
||
extraPackages32 = with pkgs.pkgsi686Linux; [vaapiIntel];
|
||
};
|
||
};
|
||
|
||
# Make sure her settings are all in German since she prefers it that way!
|
||
i18n.defaultLocale = "de_DE.UTF-8";
|
||
console = {
|
||
font = "Lat2-Terminus16";
|
||
keyMap = "de";
|
||
};
|
||
services.xserver.layout = "de";
|
||
|
||
# TODO: Remove when firefox' RDD is fixed (allows libva)
|
||
environment.variables."MOZ_DISABLE_RDD_SANDBOX" = "1";
|
||
|
||
# Enable the X11 windowing system.
|
||
services.xserver = {
|
||
enable = true;
|
||
# Enable the GNOME Desktop Environment.
|
||
displayManager.gdm.enable = true;
|
||
desktopManager.gnome.enable = true;
|
||
|
||
libinput.enable = true;
|
||
libinput.mouse.accelProfile = "flat";
|
||
libinput.touchpad.accelProfile = "flat";
|
||
};
|
||
# But disable geary in favour of evolution
|
||
programs.geary.enable = false;
|
||
programs.evolution.enable = true;
|
||
|
||
services.fprintd.enable = true;
|
||
services.fwupd.enable = true;
|
||
services.devmon.enable = true;
|
||
|
||
# Enable sound.
|
||
sound.enable = true;
|
||
hardware.pulseaudio.enable = false;
|
||
security.rtkit.enable = true;
|
||
services.pipewire = {
|
||
enable = true;
|
||
alsa.enable = true;
|
||
alsa.support32Bit = true;
|
||
pulse.enable = true;
|
||
};
|
||
xdg.portal = {
|
||
enable = true;
|
||
extraPortals = [pkgs.xdg-desktop-portal-wlr];
|
||
gtkUsePortal = true;
|
||
};
|
||
|
||
users = {
|
||
mutableUsers = false;
|
||
custom.marie.enable = true;
|
||
};
|
||
|
||
fonts = {
|
||
enableDefaultFonts = true;
|
||
fonts = with pkgs; [hackNerdLigatures noto-fonts noto-fonts-cjk joypixels];
|
||
fontconfig = {enable = true;};
|
||
};
|
||
|
||
sops.defaultSopsFile = ../secrets/hosts/elysia-clarki/secrets.yaml;
|
||
sops.age.sshKeyPaths = ["/etc/ssh/ssh_host_ed25519_key"];
|
||
|
||
# This value determines the NixOS release from which the default
|
||
# settings for stateful data, like file locations and database versions
|
||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||
# this value at the release version of the first install of this system.
|
||
# Before changing this value read the documentation for this option
|
||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||
system.stateVersion = "21.11"; # Did you read the comment?
|
||
}
|