2021-12-26 20:44:36 +01:00
|
|
|
|
{
|
2022-03-23 13:10:18 +01:00
|
|
|
|
pkgs,
|
2023-04-19 01:01:07 +02:00
|
|
|
|
inputs,
|
2022-03-23 13:10:18 +01:00
|
|
|
|
...
|
|
|
|
|
}: {
|
2023-04-19 01:01:07 +02:00
|
|
|
|
imports = [
|
|
|
|
|
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
|
|
|
|
inputs.nixos-hardware.nixosModules.common-pc-laptop
|
|
|
|
|
inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
|
|
|
|
|
inputs.self.nixosModules.homeManagerConfig
|
|
|
|
|
../hardware/latitude-e7440.nix
|
|
|
|
|
];
|
|
|
|
|
config = {
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
2021-12-26 20:44:36 +01:00
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
networking.hostName = "trochulus-hispidus";
|
2021-12-26 20:44:36 +01:00
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
networking.interfaces.eno1.useDHCP = true;
|
|
|
|
|
networking.interfaces.wlp2s0.useDHCP = true;
|
2021-12-26 20:44:36 +01:00
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
settings.minimalGnome.enable = true;
|
2022-04-15 16:29:42 +02:00
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
hardware = {
|
|
|
|
|
opengl = {
|
|
|
|
|
enable = true;
|
|
|
|
|
driSupport = true;
|
|
|
|
|
driSupport32Bit = true;
|
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
|
intel-media-driver
|
|
|
|
|
vaapiIntel
|
|
|
|
|
vaapiVdpau
|
|
|
|
|
libvdpau-va-gl
|
|
|
|
|
];
|
2022-03-29 12:13:07 +02:00
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
extraPackages32 = with pkgs.pkgsi686Linux; [vaapiIntel];
|
|
|
|
|
};
|
2022-03-29 12:13:07 +02:00
|
|
|
|
};
|
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
# 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";
|
2021-12-26 20:44:36 +01:00
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
# TODO: Remove when firefox' RDD is fixed (allows libva)
|
|
|
|
|
environment.variables."MOZ_DISABLE_RDD_SANDBOX" = "1";
|
2022-03-29 12:13:07 +02:00
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
# Enable the X11 windowing system.
|
|
|
|
|
services.xserver = {
|
|
|
|
|
enable = true;
|
|
|
|
|
# Enable the GNOME Desktop Environment.
|
|
|
|
|
displayManager.gdm.enable = true;
|
|
|
|
|
desktopManager.gnome.enable = true;
|
2021-12-26 20:44:36 +01:00
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
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;
|
2021-12-26 20:44:36 +01:00
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
services.fprintd.enable = true;
|
|
|
|
|
services.fwupd.enable = true;
|
|
|
|
|
services.devmon.enable = true;
|
2021-12-26 20:44:36 +01:00
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
# 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];
|
|
|
|
|
};
|
2021-12-26 20:44:36 +01:00
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
users = {
|
|
|
|
|
mutableUsers = false;
|
|
|
|
|
custom.marie.enable = true;
|
|
|
|
|
};
|
2021-12-26 20:44:36 +01:00
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
fonts = {
|
2023-11-16 10:12:56 +01:00
|
|
|
|
enableDefaultPackages = true;
|
|
|
|
|
packages = with pkgs; [hackNerdLigatures noto-fonts noto-fonts-cjk joypixels];
|
2023-04-19 01:01:07 +02:00
|
|
|
|
fontconfig = {enable = true;};
|
|
|
|
|
};
|
2021-12-26 20:44:36 +01:00
|
|
|
|
|
2023-04-19 01:01:07 +02:00
|
|
|
|
# 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?
|
|
|
|
|
};
|
2021-12-26 20:44:36 +01:00
|
|
|
|
}
|