mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
convert "profiles" module to "desktop"
This commit is contained in:
parent
b8c9fe888f
commit
af985de946
9 changed files with 10 additions and 17 deletions
|
@ -2,7 +2,7 @@
|
|||
{
|
||||
sconfig = {
|
||||
gnome = true;
|
||||
profile = "desktop";
|
||||
desktop.enable = true;
|
||||
horizon.enable = true;
|
||||
};
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{
|
||||
sconfig = {
|
||||
gnome = true;
|
||||
profile = "desktop";
|
||||
desktop.enable = true;
|
||||
horizon.enable = true;
|
||||
wg-home.enable = true;
|
||||
};
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
sconfig = {
|
||||
gnome = true;
|
||||
profile = "desktop";
|
||||
desktop.enable = true;
|
||||
horizon.enable = true;
|
||||
wg-home.enable = true;
|
||||
};
|
||||
|
|
|
@ -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"; };
|
||||
};
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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;
|
|
@ -1,8 +0,0 @@
|
|||
{ lib, ... }:
|
||||
with lib;
|
||||
{
|
||||
options.sconfig.profile = mkOption {
|
||||
type = types.enum [ "desktop" ];
|
||||
};
|
||||
imports = [ ./desktop.nix ];
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue