nix/hosts/laptop/default.nix

81 lines
1.7 KiB
Nix
Raw Normal View History

{ pkgs, ... }:
2024-03-09 17:18:36 +01:00
{
2024-06-20 13:41:57 +02:00
imports = [
# Import hardware configuration
2024-03-12 17:31:56 +01:00
./hardware-configuration.nix
2024-06-20 13:41:57 +02:00
# Import modules
../../modules/system/default.nix
2024-03-12 17:31:56 +01:00
];
settings = {
display-manager = "cosmic-greeter";
desktop-environments = {
cosmic.enable = true;
hyprland.enable = true;
2024-12-27 09:23:15 +01:00
gnome.enable = false;
};
applications = {
common.enable = true;
steam.enable = true;
thunar.enable = true;
};
services = {
docker.enable = true;
quickemu.enable = true;
sunshine.enable = false;
garbage-collection.enable = true;
};
hardware = {
fprint.enable = true;
printing.enable = true;
bluetooth.enable = true;
firewall.enable = true;
locale.enable = true;
2024-12-28 17:04:36 +01:00
nvidia.enable = false;
};
};
2024-03-23 09:32:03 +01:00
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
substituters = [
"https://nix-community.cachix.org"
2024-12-10 18:38:17 +01:00
"https://cosmic.cachix.org/"
];
trusted-public-keys = [
"cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="
2024-03-23 09:32:03 +01:00
];
};
2024-03-12 17:31:56 +01:00
2024-03-09 17:18:36 +01:00
# Bootloader.
boot.loader.efi.canTouchEfiVariables = true;
2024-03-12 17:31:56 +01:00
boot.loader.grub = {
2024-03-09 17:18:36 +01:00
enable = true;
2024-03-12 17:31:56 +01:00
efiSupport = true;
device = "nodev";
2024-09-12 18:39:59 +02:00
configurationLimit = 32;
2024-03-09 17:18:36 +01:00
};
2024-03-12 17:31:56 +01:00
networking.hostName = "xv-laptop"; # Define your hostname.
2024-03-09 17:18:36 +01:00
users.users.xeovalyte = {
isNormalUser = true;
description = "Timo Boomers";
2024-03-12 17:31:56 +01:00
extraGroups = [ "networkmanager" "wheel" "dialout" ];
2024-03-09 17:18:36 +01:00
};
2024-11-30 18:29:31 +01:00
nix.settings.trusted-users = [ "root" "xeovalyte" ];
2024-12-10 18:38:17 +01:00
# Prevent system freeze on high load
services.earlyoom = {
enable = true;
};
2024-06-06 09:09:50 +02:00
boot.kernelPackages = pkgs.linuxPackages_latest;
2024-06-02 12:10:28 +02:00
system.stateVersion = "24.05";
2024-03-09 17:18:36 +01:00
}