dotfiles/hosts/pearl/default.nix

123 lines
2.7 KiB
Nix
Raw Normal View History

2024-09-03 17:13:48 +02:00
{
inputs,
outputs,
lib,
config,
pkgs,
modulesPath,
...
}:
{
2024-09-03 19:07:26 +02:00
imports = [
./hardware-configuration.nix
./apps.nix
];
2024-09-03 17:13:48 +02:00
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
vpl-gpu-rt
intel-media-driver
vaapiVdpau
libvdpau-va-gl
];
};
hardware.enableAllFirmware = true;
services.printing.enable = true;
services.printing.drivers = [ pkgs.brlaser ];
networking = {
hostName = "pearl";
2024-12-10 15:30:04 +01:00
domain = "aarn.patagia.net";
2024-09-03 17:13:48 +02:00
search = [
"patagia.dev"
2024-12-10 15:30:04 +01:00
"aarn.patagia.net"
2024-09-03 17:13:48 +02:00
];
useDHCP = lib.mkDefault true;
};
networking.networkmanager.enable = true;
networking.networkmanager.wifi.backend = "iwd";
time.timeZone = "Europe/Stockholm";
2024-09-03 19:07:26 +02:00
users.users = {
annso = {
isNormalUser = true;
description = "Ann-Sofie Stenberg";
extraGroups = [
"lp"
"video"
"audio"
"wheel"
];
};
dln = {
isNormalUser = true;
description = "Daniel Lundin";
extraGroups = [
"lp"
"wheel"
];
openssh.authorizedKeys.keys = [
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAILwakA+EeuR23vRhjvjMkzK+FtWIhpnbs7z1pfnBehCUAAAABHNzaDo= dln@dinky"
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIJNOBFoU7Cdsgi4KpYRcv7EhR/8kD4DYjEZnwk6urRx7AAAABHNzaDo= dln@nemo"
];
};
2024-09-03 17:13:48 +02:00
};
patagia = {
desktop.enable = true;
laptop.enable = true;
plymouth.enable = true;
podman.enable = false;
};
systemd.services."getty@tty1".enable = false;
systemd.services."autovt@tty1".enable = false;
2024-09-03 19:07:26 +02:00
# Enable the X11 windowing system.
2024-09-03 17:13:48 +02:00
services.xserver.enable = true;
# Enable the GNOME Desktop Environment.
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
# Configure keymap in X11
services.xserver.xkb = {
layout = "se";
2024-09-03 19:07:26 +02:00
# variant = "us";
2024-09-03 17:13:48 +02:00
};
# Configure console keymap
console.keyMap = "sv-latin1";
# Enable sound with pipewire.
services.pulseaudio.enable = false;
2024-09-03 17:13:48 +02:00
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
};
nixpkgs.config.allowUnfree = true;
services.openssh.enable = true;
system.stateVersion = "24.05"; # Did you read the comment?
}