nixos/hosts/zedd/configuration.nix

68 lines
1.7 KiB
Nix
Raw Normal View History

2024-03-18 11:58:34 +00:00
{ config, pkgs, ... }:
{
# Enable OpenGL
# Load nvidia driver for Xorg and Wayland
environment.pathsToLink = [ "/libexec" ];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
2024-04-21 04:49:09 +00:00
boot = {
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
kernelModules = [ "acpi_call" ];
kernelPackages = pkgs.linuxPackages_xanmod_latest;
};
boot.kernel.sysctl = {
"vm.max_map_count" = 16777216;
"fs.file-max" = 524288;
};
2024-03-18 11:58:34 +00:00
2024-03-18 12:13:50 +00:00
networking.hostName = "zedd"; # Define your hostname.
2024-03-18 11:58:34 +00:00
networking.networkmanager.enable = true;
time.timeZone = "Europe/Oslo";
i18n.defaultLocale = "en_US.UTF-8";
2024-03-18 12:11:31 +00:00
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}" ];
};
2024-04-21 04:49:09 +00:00
fileSystems."/data" = {
device = "/dev/data/data";
fsType = "ext4";
};
2024-03-18 13:09:49 +00:00
xdg.portal =
{
enable = true;
xdgOpenUsePortal = true;
config = {
2024-03-21 18:26:22 +00:00
common = {
2024-03-18 13:09:49 +00:00
default = [
2024-03-21 18:26:22 +00:00
"*"
2024-03-18 13:09:49 +00:00
];
};
};
extraPortals = (with pkgs; [
# unstable.xdg-desktop-portal-hyprland
xdg-desktop-portal-gtk
]);
};
2024-03-18 11:58:34 +00:00
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
2024-04-21 04:49:09 +00:00
nix.settings = {
substituters = [ "https://nix-gaming.cachix.org" ];
trusted-public-keys = [ "nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4=" ];
};
2024-03-18 11:58:34 +00:00
virtualisation.docker.enable = true;
system.stateVersion = "23.11"; # Did you read the comment?
}