steamdeck: add specialisation for sway

This commit is contained in:
Kabbone 2025-02-02 20:55:06 +01:00
parent c3a45f7984
commit 95048298ad
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY
2 changed files with 25 additions and 14 deletions

View File

@ -20,14 +20,25 @@
{ config, pkgs, user, jovian-nixos, lib, ... }: { config, pkgs, user, jovian-nixos, lib, ... }:
{ {
specialisation = {
steam.configuration = {
imports =
[(import ../../modules/wm/steam)] ++
[(import ../../modules/wm/kde)];
};
sway.configuration = {
imports =
[(import ../../modules/wm/sway)];
};
};
imports = # For now, if applying to other system, swap files imports = # For now, if applying to other system, swap files
[(import ./hardware-configuration.nix)] ++ # Current system hardware config @ /etc/nixos/hardware-configuration.nix [(import ./hardware-configuration.nix)] ++ # Current system hardware config @ /etc/nixos/hardware-configuration.nix
[(import ../../modules/wm/steam/default.nix)] ++ # jovian steam
[(import ../../modules/wm/kde/default.nix)] ++ # Window Manager
(import ../../modules/wm/virtualisation) ++ # libvirt + Docker (import ../../modules/wm/virtualisation) ++ # libvirt + Docker
[(import ../../modules/wm/virtualisation/kvm-amd.nix)] ++ # kvm module options [(import ../../modules/wm/virtualisation/kvm-amd.nix)] ++ # kvm module options
(import ../../modules/hardware); # Hardware devices (import ../../modules/hardware); # Hardware devices
boot = { # Boot options boot = { # Boot options
loader = { # EFI Boot loader = { # EFI Boot
systemd-boot.enable = lib.mkForce false; systemd-boot.enable = lib.mkForce false;
@ -44,20 +55,10 @@
}; };
}; };
# hardware.sane = { # Used for scanning with Xsane
# enable = false;
# extraBackends = [ pkgs.sane-airscan ];
# };
hardware = { hardware = {
nitrokey.enable = true; nitrokey.enable = true;
}; };
# environment = {
# systemPackages = with pkgs; [
## alacritty
# ];
# };
programs = { # No xbacklight, this is the alterantive programs = { # No xbacklight, this is the alterantive
light.enable = true; light.enable = true;
}; };

View File

@ -14,10 +14,20 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
specialisation = {
steam.configuration = {
imports =
[(import ../../modules/wm/steam/home.nix)] ++
[(import ../../modules/wm/kde/home.nix)];
};
sway.configuration = {
imports =
[(import ../../modules/wm/sway/home.nix)];
};
};
imports = imports =
[ [
../../modules/wm/steam/home.nix # Window Manager
../../modules/wm/kde/home.nix # Window Manager
../../modules/home.nix # Window Manager ../../modules/home.nix # Window Manager
]; ];