gui/plasma-mobile: port to module system
This commit is contained in:
@@ -1,14 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
# start plasma-mobile on boot
|
|
||||||
services.xserver.enable = true;
|
|
||||||
services.xserver.desktopManager.plasma5.mobile.enable = true;
|
|
||||||
services.xserver.desktopManager.plasma5.mobile.installRecommendedSoftware = false; # not all plasma5-mobile packages build for aarch64
|
|
||||||
services.xserver.displayManager.sddm.enable = true;
|
|
||||||
|
|
||||||
# Plasma does networking stuff with networkmanager, but nix configures the defaults itself
|
|
||||||
# networking.useDHCP = false;
|
|
||||||
# networking.networkmanager.enable = true;
|
|
||||||
# networking.wireless.enable = lib.mkForce false;
|
|
||||||
}
|
|
@@ -3,6 +3,7 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./phosh.nix
|
./phosh.nix
|
||||||
|
./plasma-mobile.nix
|
||||||
./sway.nix
|
./sway.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
27
modules/gui/plasma-mobile.nix
Normal file
27
modules/gui/plasma-mobile.nix
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{ lib, config, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.colinsane.gui.plasma-mobile;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
colinsane.gui.plasma-mobile.enable = mkOption {
|
||||||
|
default = false;
|
||||||
|
type = types.bool;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
# start plasma-mobile on boot
|
||||||
|
services.xserver.enable = true;
|
||||||
|
services.xserver.desktopManager.plasma5.mobile.enable = true;
|
||||||
|
services.xserver.desktopManager.plasma5.mobile.installRecommendedSoftware = false; # not all plasma5-mobile packages build for aarch64
|
||||||
|
services.xserver.displayManager.sddm.enable = true;
|
||||||
|
|
||||||
|
# Plasma does networking stuff with networkmanager, but nix configures the defaults itself
|
||||||
|
# networking.useDHCP = false;
|
||||||
|
# networking.networkmanager.enable = true;
|
||||||
|
# networking.wireless.enable = lib.mkForce false;
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user