summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-08-30 12:31:28 -0500
committerTim Keller <tjk@tjkeller.xyz>2025-08-30 12:31:28 -0500
commit9da942ba47d34210e86a1a709e802eda5c3b95db (patch)
treef7434c4b4c9b8e5271220c11f9b802815c3519c7 /hosts
parentc3c3d6f1fd19a5da015c9a9d3ae5c54f2d177be0 (diff)
downloadnixos-9da942ba47d34210e86a1a709e802eda5c3b95db.tar.xz
nixos-9da942ba47d34210e86a1a709e802eda5c3b95db.zip
refactor users activation. refactor home manager config to match nixos conf and move tjkeller archetypes to users/timmy. update many of the exising home manager configs to be nicer and better organized. profile archetypes now include homeconfigs which can be enabled per user, and are setup using a new mkProfileArchetype function.
Diffstat (limited to 'hosts')
-rw-r--r--hosts/optiplex/configuration.nix37
-rw-r--r--hosts/optiplex/home.nix4
2 files changed, 23 insertions, 18 deletions
diff --git a/hosts/optiplex/configuration.nix b/hosts/optiplex/configuration.nix
index 8a06294..b92b580 100644
--- a/hosts/optiplex/configuration.nix
+++ b/hosts/optiplex/configuration.nix
@@ -1,16 +1,14 @@
-{ config, lib, pkgs, ... }: {
- imports = [
- ./hardware-configuration.nix
- ../../archetypes/tjkeller
- ];
-
+{ config, lib, pkgs, home-manager, ... }: {
# Setup bootloader
boot._loader.enable = true;
# Enable common options
_archetypes = {
# Use desktop profile
- profiles.desktop.enable = true;
+ profiles.desktop = {
+ enable = true;
+ home.users.timmy.enable = true;
+ };
# Install software
collections = {
desktop = {
@@ -35,14 +33,13 @@
};
};
};
- # Setup user
- users.primary = {
- enable = true;
- autologin.enable = true;
- };
- tjkeller = {
- nas.enable = true;
- };
+ };
+
+ # Enable user timmy
+ _users.timmy = {
+ enable = true;
+ autologin.enable = true;
+ nas.enable = true;
};
# Disable suspend
@@ -69,5 +66,15 @@
forceFullCompositionPipeline = true; # Enables vsync
};
+ # Configure home
+ home-manager.users.timmy = {
+ gtk._mintTheme = {
+ dark = true;
+ color = "Green";
+ icons.color = "Green";
+ };
+ programs._seasonalwallpaper.wallpapers.download = true;
+ };
+
system.stateVersion = "24.11";
}
diff --git a/hosts/optiplex/home.nix b/hosts/optiplex/home.nix
index d293ae0..38646b1 100644
--- a/hosts/optiplex/home.nix
+++ b/hosts/optiplex/home.nix
@@ -1,6 +1,4 @@
-{ ... }: {
- imports = [ ../../home-manager ];
-
+{
theme.mint.theme.color = "Dark-Green";
theme.mint.icons.color = "Green";
wallpapers.enable = true;