steamdeck: add specialisation for sway
This commit is contained in:
		
							parent
							
								
									c3a45f7984
								
							
						
					
					
						commit
						95048298ad
					
				@ -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;
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
				
			|||||||
@ -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
 | 
				
			||||||
    ];
 | 
					    ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user