nix/hosts/desktop/default.nix

66 lines
1.5 KiB
Nix
Raw Normal View History

2024-03-12 21:24:29 +01:00
{ config, pkgs, ... }:
{
imports = [ # Include the results of the hardware scan.
./hardware-configuration.nix
2024-06-20 13:41:57 +02:00
# GUI
../../modules/system/gui/plasma.nix
../../modules/system/gui/steam.nix
../../modules/system/gui/sunshine.nix
# CLI
../../modules/system/cli/common.nix
# Hardware
../../modules/system/hardware/firewall.nix
../../modules/system/hardware/garbage-collection.nix
../../modules/system/hardware/locale.nix
../../modules/system/hardware/nvidia.nix
2024-03-12 21:24:29 +01:00
];
2024-03-23 09:32:03 +01:00
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
substituters = [
"https://nix-community.cachix.org"
"https://cache.nixos.org/"
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
2024-03-12 21:24:29 +01:00
# Bootloader.
boot.loader.efi.canTouchEfiVariables = true;
2024-06-20 12:56:01 +02:00
# boot.loader.grub = {
# enable = true;
# efiSupport = true;
# device = "nodev";
# };
boot.loader.systemd-boot.enable = true;
networking.networkmanager.enable = true;
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-06-20 12:56:01 +02:00
services.displayManager.autoLogin = {
enable = true;
user = "xeovalyte";
};
2024-03-12 21:24:29 +01:00
2024-06-20 12:56:01 +02:00
systemd.services."getty@tty1".enable = false;
systemd.services."autovt@tty1".enable = false;
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
}