nixos/hosts/zedd/configuration.nix
2024-12-04 16:27:03 +01:00

83 lines
1.8 KiB
Nix

{
config,
pkgs,
lib,
...
}:
{
# Enable OpenGL
# Load nvidia driver for Xorg and Wayland
environment.pathsToLink = [ "/libexec" ];
users.users.mbeno.extraGroups = [ "adbusers" ];
programs.adb.enable = true;
system.autoUpgrade = {
enable = true;
dates = "03:00";
flake = "/home/mbeno/git/nixos";
};
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot = {
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
kernelModules = [ "acpi_call" ];
kernelPackages = pkgs.linuxPackages_xanmod_latest;
};
boot.kernel.sysctl = {
"vm.max_map_count" = 2147483642;
"fs.file-max" = 524288;
};
networking.extraHosts = ''
127.0.0.1 zedd zedd.local
'';
networking.hostName = "zedd"; # Define your hostname.
time.timeZone = "Europe/Oslo";
i18n.defaultLocale = "en_US.UTF-8";
environment.sessionVariables = rec {
XDG_CACHE_HOME = "$HOME/.cache";
XDG_CONFIG_HOME = "$HOME/.config";
XDG_DATA_HOME = "$HOME/.local/share";
XDG_STATE_HOME = "$HOME/.local/state";
XDG_BIN_HOME = "$HOME/.local/bin";
PATH = [ "${XDG_BIN_HOME}" ];
};
fileSystems."/data" = {
device = "/dev/data/data";
fsType = "ext4";
};
xdg.portal = {
enable = true;
xdgOpenUsePortal = true;
config = {
common = {
default = [
"*"
];
};
};
extraPortals = (
with pkgs;
[
# unstable.xdg-desktop-portal-hyprland
xdg-desktop-portal-gtk
]
);
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
virtualisation.docker.enable = true;
virtualisation.docker.liveRestore = false;
system.stateVersion = "23.11"; # Did you read the comment?
}