summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-12-19 21:26:23 -0600
committerTim Keller <tjk@tjkeller.xyz>2025-12-19 21:26:23 -0600
commitb1504b0e84b95fe06224fbc56471fa7ac15e79ac (patch)
tree6563d5e3eb8c484940bfde8c813aaa3c064a2d2c /hosts
parent40ab982415e27d060ad3a7939e0a749caa9973c0 (diff)
downloadnixos-b1504b0e84b95fe06224fbc56471fa7ac15e79ac.tar.xz
nixos-b1504b0e84b95fe06224fbc56471fa7ac15e79ac.zip
update immich-frame and piframe config and headless disable fontconfig refactor
Diffstat (limited to 'hosts')
-rw-r--r--hosts/piframe/configuration.nix55
1 files changed, 42 insertions, 13 deletions
diff --git a/hosts/piframe/configuration.nix b/hosts/piframe/configuration.nix
index dc9fc4f..585b011 100644
--- a/hosts/piframe/configuration.nix
+++ b/hosts/piframe/configuration.nix
@@ -9,38 +9,67 @@
profiles.headless = {
enable = true;
home.users.timmy.enable = true;
+ home.users.piframe.enable = true;
};
collections = {
desktop.xserver.enable = true;
};
};
- # Enable geoclue for redshift
- services._geoclue2.enable = true;
+ # Install twm as basic window manager to boot into and immediately go fullscreen on immich-frame
+ services.xserver.windowManager.twm.enable = true;
# Install immich-frame
environment.systemPackages = with pkgs; [
immich-frame
];
- # Enable user timmy
+ # Enable user timmy for ssh maintenance and wifi secrets
_users.timmy = {
enable = true;
- autologin.enable = true;
wifi.enable = true;
};
- # Configure home
- home-manager.users.timmy = {
- services._redshift.enable = true;
- home.file.".xinitrc" = {
- text = ''
- #!/bin/sh
- redshift &
- unclutter &
- exec immich-frame
+ # Enable piframe user
+ users.users.piframe = {
+ isNormalUser = true;
+ #extraGroups = [ "video" ];
+ };
+
+ # Configure automatic login with getty
+ services.getty.autologinUser = "piframe";
+
+ # Configure piframe home
+ home-manager.users.piframe = {
+ services.gammastep = {
+ enable = true;
+ temperature = {
+ day = 6500;
+ night = 3600;
+ };
+ # Manual location to avoid having to mess with geoclue
+ latitude = 41.881832;
+ longitude = -87.623177;
+ };
+ programs.bash = {
+ enable = true;
+ profileExtra = ''
+ # startx on tty1 immediately
+ [ -z $DISPLAY ] && [ `tty` = /dev/tty1 ] && startx
'';
};
+ home.file.".xinitrc".text = ''
+ #!/bin/sh
+ redshift &
+ unclutter --start-hidden &
+ immich-frame --fullscreen &
+ exec twm
+ '';
+ home.file.".twmrc".text = ''
+ *NoTitle # Hide title bar on all windows
+ *NoBorder # Hide borders on all windows
+ '';
+ home.stateVersion = "25.11";
};
system.stateVersion = "25.11";