nixos-config/hosts/steamdeck/default.nix

85 lines
2.4 KiB
Nix
Raw Permalink Normal View History

2023-07-21 22:07:21 +02:00
#
# Specific system configuration settings for desktop
#
# flake.nix
# ├─ ./hosts
# │ └─ ./laptop
# │ ├─ default.nix *
# │ └─ hardware-configuration.nix
# └─ ./modules
# ├─ ./desktop
# │ └─ ./hyprland
# │ └─ hyprland.nix
# ├─ ./modules
# │ └─ ./programs
# │ └─ waybar.nix
# └─ ./hardware
# └─ default.nix
#
2024-02-25 08:09:17 +01:00
{ config, pkgs, user, jovian-nixos, lib, ... }:
2023-07-21 22:07:21 +02:00
{
2025-02-02 20:55:06 +01:00
specialisation = {
sway.configuration = {
imports =
2025-02-03 20:42:30 +01:00
[(import ../../modules/wm/sway)];
jovian.steam.enable = lib.mkForce false;
services.desktopManager.plasma6.enable = lib.mkForce false;
2025-02-02 20:55:06 +01:00
};
};
2023-07-21 22:07:21 +02:00
imports = # For now, if applying to other system, swap files
[(import ./hardware-configuration.nix)] ++ # Current system hardware config @ /etc/nixos/hardware-configuration.nix
2024-05-19 17:57:35 +02:00
(import ../../modules/wm/virtualisation) ++ # libvirt + Docker
[(import ../../modules/wm/virtualisation/kvm-amd.nix)] ++ # kvm module options
2025-02-03 20:42:30 +01:00
[(import ../../modules/wm/steam)] ++
[(import ../../modules/wm/kde)] ++
(import ../../modules/hardware); # Hardware devices
2023-07-21 22:07:21 +02:00
boot = { # Boot options
loader = { # EFI Boot
2024-02-25 08:09:17 +01:00
systemd-boot.enable = lib.mkForce false;
2023-07-21 22:07:21 +02:00
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
timeout = 1; # Grub auto select time
};
2024-02-25 08:09:17 +01:00
lanzaboote = {
enable = true;
pkiBundle = "/etc/secureboot";
};
2023-07-21 22:07:21 +02:00
};
hardware = {
nitrokey.enable = true;
};
programs = { # No xbacklight, this is the alterantive
light.enable = true;
};
services = {
2023-12-27 07:43:00 +01:00
# blueman.enable = true;
2023-07-21 22:07:21 +02:00
printing = { # Printing and drivers for TS5300
enable = true;
drivers = [ pkgs.gutenprint ];
};
avahi = { # Needed to find wireless printer
enable = true;
nssmdns4 = true;
2023-07-21 22:07:21 +02:00
publish = { # Needed for detecting the scanner
enable = true;
addresses = true;
userServices = true;
};
};
tailscale.enable = true;
};
security.pam.sshAgentAuth.enable = true;
2023-07-21 22:07:21 +02:00
}