nixos/hosts/zedd/configuration.nix

83 lines
1.8 KiB
Nix
Raw Normal View History

2025-01-12 14:40:40 +01:00
{ config
, pkgs
, lib
, inputs
, ...
2024-12-04 16:27:03 +01:00
}:
2024-03-18 12:58:34 +01:00
{
# Enable OpenGL
# Load nvidia driver for Xorg and Wayland
environment.pathsToLink = [ "/libexec" ];
2024-07-07 23:16:41 +02:00
users.users.mbeno.extraGroups = [ "adbusers" ];
programs.adb.enable = true;
2024-11-22 16:11:43 +01:00
system.autoUpgrade = {
enable = true;
dates = "03:00";
flake = "/home/mbeno/git/nixos";
};
2024-03-18 12:58:34 +01:00
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
2024-04-21 06:49:09 +02:00
boot = {
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
kernelModules = [ "acpi_call" ];
kernelPackages = pkgs.linuxPackages_xanmod_latest;
};
boot.kernel.sysctl = {
2024-10-31 13:14:45 +01:00
"vm.max_map_count" = 2147483642;
2024-04-21 06:49:09 +02:00
"fs.file-max" = 524288;
};
2024-12-04 16:27:03 +01:00
networking.extraHosts = ''
127.0.0.1 zedd zedd.local
2024-12-01 12:56:28 +01:00
'';
2024-04-21 06:49:09 +02:00
2024-03-18 13:13:50 +01:00
networking.hostName = "zedd"; # Define your hostname.
2024-03-18 12:58:34 +01:00
time.timeZone = "Europe/Oslo";
i18n.defaultLocale = "en_US.UTF-8";
2024-03-18 13:11:31 +01: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-05-01 18:29:17 +02:00
2024-03-18 13:11:31 +01:00
};
2024-04-21 06:49:09 +02:00
fileSystems."/data" = {
device = "/dev/data/data";
fsType = "ext4";
};
2024-12-04 16:27:03 +01:00
xdg.portal = {
enable = true;
xdgOpenUsePortal = true;
config = {
common = {
default = [
"*"
];
2024-03-18 14:09:49 +01:00
};
2024-12-04 16:27:03 +01:00
};
extraPortals = (
with pkgs;
[
2024-03-18 14:09:49 +01:00
# unstable.xdg-desktop-portal-hyprland
xdg-desktop-portal-gtk
2024-12-04 16:27:03 +01:00
]
);
2024-03-18 14:09:49 +01:00
2024-12-04 16:27:03 +01:00
};
2024-03-18 12:58:34 +01:00
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
2024-12-04 16:27:03 +01:00
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
2024-03-18 12:58:34 +01:00
virtualisation.docker.enable = true;
2024-05-01 18:29:17 +02:00
virtualisation.docker.liveRestore = false;
2024-03-18 12:58:34 +01:00
system.stateVersion = "23.11"; # Did you read the comment?
}