qenya/plasma: Move into kilgharrah's host config
This commit is contained in:
parent
a630607350
commit
55c622408b
8 changed files with 48 additions and 56 deletions
|
@ -6,7 +6,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./desktop.nix
|
./gnome.nix
|
||||||
./sound.nix
|
./sound.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -1,35 +0,0 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
inherit (lib) mkIf mkMerge mkOption types;
|
|
||||||
cfg = config.qenya.base-graphical;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.qenya.base-graphical.desktop = mkOption {
|
|
||||||
type = types.enum [ "gnome" "plasma6" ];
|
|
||||||
default = "gnome";
|
|
||||||
example = "plasma6";
|
|
||||||
description = "Which display manager and desktop manager to use.";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable (mkMerge [
|
|
||||||
(mkIf (cfg.desktop == "gnome") {
|
|
||||||
services.xserver.displayManager.gdm.enable = true;
|
|
||||||
services.xserver.desktopManager.gnome.enable = true;
|
|
||||||
# TODO: agree on this with randomcat as it affects her too, since for some reason this is system-wide
|
|
||||||
# environment.gnome.excludePackages = with pkgs.gnome; [
|
|
||||||
# pkgs.gnome-tour
|
|
||||||
# epiphany # GNOME Web
|
|
||||||
# geary
|
|
||||||
# gnome-calendar
|
|
||||||
# gnome-contacts
|
|
||||||
# gnome-music
|
|
||||||
# ];
|
|
||||||
})
|
|
||||||
(mkIf (cfg.desktop == "plasma6") {
|
|
||||||
services.displayManager.sddm.enable = true;
|
|
||||||
services.displayManager.sddm.wayland.enable = true;
|
|
||||||
services.desktopManager.plasma6.enable = true;
|
|
||||||
})
|
|
||||||
]);
|
|
||||||
}
|
|
21
common/base-graphical/gnome.nix
Normal file
21
common/base-graphical/gnome.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (lib) mkIf mkMerge mkOption types;
|
||||||
|
cfg = config.qenya.base-graphical;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.xserver.displayManager.gdm.enable = true;
|
||||||
|
services.xserver.desktopManager.gnome.enable = true;
|
||||||
|
# TODO: agree on this with randomcat as it affects her too, since for some reason this is system-wide
|
||||||
|
# environment.gnome.excludePackages = with pkgs.gnome; [
|
||||||
|
# pkgs.gnome-tour
|
||||||
|
# epiphany # GNOME Web
|
||||||
|
# geary
|
||||||
|
# gnome-calendar
|
||||||
|
# gnome-contacts
|
||||||
|
# gnome-music
|
||||||
|
# ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -88,11 +88,7 @@
|
||||||
# However, note CppNix >= 2.22.3, >= 2.24 has blessed "homeModules":
|
# However, note CppNix >= 2.22.3, >= 2.24 has blessed "homeModules":
|
||||||
# https://github.com/NixOS/nix/pull/10858
|
# https://github.com/NixOS/nix/pull/10858
|
||||||
flake.homeManagerModules = {
|
flake.homeManagerModules = {
|
||||||
"qenya".imports = [
|
"qenya".imports = [ ./home/qenya ];
|
||||||
inputs.plasma-manager.homeManagerModules.plasma-manager
|
|
||||||
./home/qenya
|
|
||||||
];
|
|
||||||
|
|
||||||
"qenya@shaw".imports = [ ./hosts/shaw/home.nix ];
|
"qenya@shaw".imports = [ ./hosts/shaw/home.nix ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./dconf
|
./dconf
|
||||||
./plasma
|
|
||||||
./firefox.nix
|
./firefox.nix
|
||||||
./fontconfig.nix
|
./fontconfig.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
{ config, lib, pkgs, osConfig, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
isPlasma = osConfig.services.desktopManager.plasma6.enable || osConfig.services.xserver.desktopManager.plasma5.enable;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
programs.plasma.enable = isPlasma;
|
|
||||||
programs.plasma.overrideConfig = true;
|
|
||||||
|
|
||||||
imports = [ ];
|
|
||||||
}
|
|
|
@ -9,6 +9,8 @@ in
|
||||||
./filesystems.nix
|
./filesystems.nix
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
./networking.nix
|
./networking.nix
|
||||||
|
./plasma.nix
|
||||||
|
|
||||||
./ftp.nix
|
./ftp.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -20,7 +22,6 @@ in
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
|
||||||
qenya.base-graphical.enable = true;
|
qenya.base-graphical.enable = true;
|
||||||
qenya.base-graphical.desktop = "plasma6";
|
|
||||||
|
|
||||||
time.timeZone = "Europe/London";
|
time.timeZone = "Europe/London";
|
||||||
i18n.defaultLocale = "en_GB.UTF-8";
|
i18n.defaultLocale = "en_GB.UTF-8";
|
||||||
|
@ -33,8 +34,6 @@ in
|
||||||
fountain.admins = [ "qenya" ];
|
fountain.admins = [ "qenya" ];
|
||||||
home-manager.users.qenya = { pkgs, ... }: {
|
home-manager.users.qenya = { pkgs, ... }: {
|
||||||
home.packages = with pkgs; [ obs-studio ];
|
home.packages = with pkgs; [ obs-studio ];
|
||||||
# For the moment, this hosts some network-accessible services, so we want it on 24/7
|
|
||||||
programs.plasma.powerdevil.AC.autoSuspend.action = "nothing";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
qenya.services.remote-builder = {
|
qenya.services.remote-builder = {
|
||||||
|
|
23
hosts/kilgharrah/plasma.nix
Normal file
23
hosts/kilgharrah/plasma.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{ config, lib, pkgs, inputs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (lib) mkForce;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
services.xserver.displayManager.gdm.enable = mkForce false;
|
||||||
|
services.xserver.desktopManager.gnome.enable = mkForce false;
|
||||||
|
services.displayManager.sddm.enable = true;
|
||||||
|
services.displayManager.sddm.wayland.enable = true;
|
||||||
|
services.desktopManager.plasma6.enable = true;
|
||||||
|
|
||||||
|
home-manager.users.qenya = { pkgs, ... }: {
|
||||||
|
imports = [
|
||||||
|
inputs.plasma-manager.homeManagerModules.plasma-manager
|
||||||
|
];
|
||||||
|
programs.plasma.enable = true;
|
||||||
|
programs.plasma.overrideConfig = true;
|
||||||
|
|
||||||
|
# For the moment, this hosts some network-accessible services, so we want it on 24/7
|
||||||
|
programs.plasma.powerdevil.AC.autoSuspend.action = "nothing";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue