add a desktop profile

This commit is contained in:
Motiejus Jakštys 2023-09-14 21:52:10 +03:00
parent 9688e4147b
commit 09f1b62cc8
3 changed files with 28 additions and 10 deletions

View File

@ -85,6 +85,7 @@
./hosts/fwminex/configuration.nix ./hosts/fwminex/configuration.nix
./modules ./modules
./modules/profiles/desktop
agenix.nixosModules.default agenix.nixosModules.default
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager

View File

@ -57,7 +57,6 @@
passwd = { passwd = {
root.initialPassword = "live"; root.initialPassword = "live";
motiejus.initialPassword = "live"; motiejus.initialPassword = "live";
motiejus.extraGroups = ["networkmanager"];
#root.passwordFile = config.age.secrets.root-passwd-hash.path; #root.passwordFile = config.age.secrets.root-passwd-hash.path;
#motiejus.passwordFile = config.age.secrets.motiejus-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 = { networking = {
hostId = "3a54afcd"; hostId = "3a54afcd";
hostName = "fwminex"; hostName = "fwminex";
domain = "motiejus.jakst"; domain = "motiejus.jakst";
networkmanager.enable = true;
}; };
} }

View File

@ -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;
};
}