From 09f1b62cc827117a78cff3d8d922efa575edcff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Thu, 14 Sep 2023 21:52:10 +0300 Subject: [PATCH] add a desktop profile --- flake.nix | 1 + hosts/fwminex/configuration.nix | 10 ---------- modules/profiles/desktop/default.nix | 27 +++++++++++++++++++++++++++ 3 files changed, 28 insertions(+), 10 deletions(-) create mode 100644 modules/profiles/desktop/default.nix diff --git a/flake.nix b/flake.nix index 95bb01d..47ca203 100644 --- a/flake.nix +++ b/flake.nix @@ -85,6 +85,7 @@ ./hosts/fwminex/configuration.nix ./modules + ./modules/profiles/desktop agenix.nixosModules.default home-manager.nixosModules.home-manager diff --git a/hosts/fwminex/configuration.nix b/hosts/fwminex/configuration.nix index c786302..85f7929 100644 --- a/hosts/fwminex/configuration.nix +++ b/hosts/fwminex/configuration.nix @@ -57,7 +57,6 @@ passwd = { root.initialPassword = "live"; motiejus.initialPassword = "live"; - motiejus.extraGroups = ["networkmanager"]; #root.passwordFile = config.age.secrets.root-passwd-hash.path; #motiejus.passwordFile = config.age.secrets.motiejus-passwd-hash.path; }; @@ -104,18 +103,9 @@ }; }; - services = { - xserver = { - enable = true; - desktopManager.gnome.enable = true; - displayManager.gdm.enable = true; - }; - }; - networking = { hostId = "3a54afcd"; hostName = "fwminex"; domain = "motiejus.jakst"; - networkmanager.enable = true; }; } diff --git a/modules/profiles/desktop/default.nix b/modules/profiles/desktop/default.nix new file mode 100644 index 0000000..03c1e95 --- /dev/null +++ b/modules/profiles/desktop/default.nix @@ -0,0 +1,27 @@ +{ + config, + lib, + pkgs, + ... +}: { + config = { + services.udev.packages = [pkgs.yubikey-personalization]; + + programs.gnupg.agent = { + enable = true; + enableSSHSupport = true; + }; + + mj.base.users.passwd.motiejus.extraGroups = ["networkmanager"]; + + services = { + xserver = { + enable = true; + desktopManager.gnome.enable = true; + displayManager.gdm.enable = true; + }; + }; + + networking.networkmanager.enable = true; + }; +}