nix/hosts/desktop/default.nix

75 lines
1.6 KiB
Nix
Raw Normal View History

2024-12-28 16:59:34 +01:00
{ pkgs, ... }:
2024-03-12 21:24:29 +01:00
{
2024-12-28 16:59:34 +01:00
imports = [
# Include the results of the hardware scan.
2024-03-12 21:24:29 +01:00
./hardware-configuration.nix
2024-06-20 13:41:57 +02:00
2024-12-28 16:59:34 +01:00
# Import modules
../../modules/system/default.nix
2024-03-12 21:24:29 +01:00
];
2024-12-28 16:59:34 +01:00
settings = {
display-manager = "cosmic-greeter";
desktop-environments = {
cosmic.enable = true;
hyprland.enable = false;
gnome.enable = false;
};
applications = {
common.enable = true;
steam.enable = true;
thunar.enable = false;
};
services = {
docker.enable = false;
quickemu.enable = false;
sunshine.enable = false;
garbage-collection.enable = true;
};
hardware = {
fprint.enable = false;
printing.enable = true;
bluetooth.enable = false;
firewall.enable = true;
locale.enable = true;
};
};
2024-03-23 09:32:03 +01:00
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
substituters = [
"https://nix-community.cachix.org"
2024-12-28 16:59:34 +01:00
"https://cosmic.cachix.org/"
2024-03-23 09:32:03 +01:00
];
2024-12-28 16:59:34 +01:00
trusted-public-keys = [
"cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="
];
};
2024-03-12 21:24:29 +01:00
# Bootloader.
boot.loader.efi.canTouchEfiVariables = true;
2024-08-09 11:02:11 +02:00
boot.loader.grub = {
enable = true;
efiSupport = true;
device = "nodev";
};
2024-03-12 21:24:29 +01:00
2024-12-28 16:59:34 +01:00
# Networking configuration
2024-03-12 21:24:29 +01:00
networking.hostName = "xv-desktop"; # Define your hostname.
networking.interfaces.enp7s0.wakeOnLan.enable = true;
users.users.xeovalyte = {
isNormalUser = true;
description = "Timo Boomers";
2024-05-21 10:58:33 +02:00
extraGroups = [ "networkmanager" "wheel" "dialout" "fuse" ];
2024-03-12 21:24:29 +01:00
};
2024-08-09 11:02:11 +02:00
boot.kernelPackages = pkgs.linuxPackages_latest;
2024-03-16 20:45:29 +01:00
2024-06-02 12:10:28 +02:00
system.stateVersion = "24.05";
2024-03-12 21:24:29 +01:00
}