convert "profiles" module to "desktop"

This commit is contained in:
Sean Buckley 2023-03-27 11:21:48 -04:00
parent b8c9fe888f
commit af985de946
9 changed files with 10 additions and 17 deletions

View file

@ -2,7 +2,7 @@
{
sconfig = {
gnome = true;
profile = "desktop";
desktop.enable = true;
horizon.enable = true;
};

View file

@ -2,7 +2,7 @@
{
sconfig = {
gnome = true;
profile = "desktop";
desktop.enable = true;
horizon.enable = true;
wg-home.enable = true;
};

View file

@ -20,7 +20,7 @@
sconfig = {
gnome = true;
profile = "desktop";
desktop.enable = true;
horizon.enable = true;
wg-home.enable = true;
};

View file

@ -17,7 +17,7 @@ in
sconfig = {
gnome = true;
profile = "desktop";
desktop.enable = true;
horizon.enable = true;
wg-home = { enable = true; path = "${persist}/wireguard_home.conf"; };
};

View file

@ -1,7 +1,7 @@
{ config, lib, modulesPath, pkgs, ... }:
{
sconfig.gnome = true;
sconfig.profile = "desktop";
sconfig.desktop.enable = true;
services.getty.autologinUser = "root";
system.stateVersion = "99.99";

View file

@ -1,7 +1,11 @@
{ config, pkgs, lib, ... }:
with lib;
{
config = mkIf (config.sconfig.profile == "desktop") {
options.sconfig.desktop = {
enable = lib.mkEnableOption "Enable Desktop Environment";
};
config = mkIf (config.sconfig.desktop.enable) {
programs.steam.enable = true;
services.pcscd.enable = true;
virtualisation.podman.enable = true;

View file

@ -1,8 +0,0 @@
{ lib, ... }:
with lib;
{
options.sconfig.profile = mkOption {
type = types.enum [ "desktop" ];
};
imports = [ ./desktop.nix ];
}

View file

@ -8,9 +8,6 @@ let
];
in
{
users.users.root.openssh.authorizedKeys.keys =
lib.optionals (config.sconfig.profile == "server") keys;
users.users.sean = {
uid = 2000;
isNormalUser = true;