refactor(flake): user registry, multi-user hosts, and portable home outputs #49
@@ -224,6 +224,7 @@
|
|||||||
];
|
];
|
||||||
users.lyrathorpe.homeModules = [
|
users.lyrathorpe.homeModules = [
|
||||||
./home
|
./home
|
||||||
|
./users/lyrathorpe/home.nix
|
||||||
./home/desktop.nix
|
./home/desktop.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@@ -245,6 +246,7 @@
|
|||||||
];
|
];
|
||||||
users.lyrathorpe.homeModules = [
|
users.lyrathorpe.homeModules = [
|
||||||
./home
|
./home
|
||||||
|
./users/lyrathorpe/home.nix
|
||||||
./home/desktop.nix
|
./home/desktop.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@@ -262,6 +264,7 @@
|
|||||||
];
|
];
|
||||||
users.lyrathorpe.homeModules = [
|
users.lyrathorpe.homeModules = [
|
||||||
./home
|
./home
|
||||||
|
./users/lyrathorpe/home.nix
|
||||||
./home/desktop.nix
|
./home/desktop.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@@ -295,7 +298,10 @@
|
|||||||
inputs.nixos-hardware.nixosModules.raspberry-pi-5
|
inputs.nixos-hardware.nixosModules.raspberry-pi-5
|
||||||
./modules/ssh.nix
|
./modules/ssh.nix
|
||||||
];
|
];
|
||||||
users.lyrathorpe.homeModules = [ ./home ];
|
users.lyrathorpe.homeModules = [
|
||||||
|
./home
|
||||||
|
./users/lyrathorpe/home.nix
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -311,6 +317,7 @@
|
|||||||
];
|
];
|
||||||
homeModules = [
|
homeModules = [
|
||||||
./home
|
./home
|
||||||
|
./users/lyrathorpe/home.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -341,9 +341,6 @@ in
|
|||||||
IdentityFile = "~/.ssh/code.emmathe.dev";
|
IdentityFile = "~/.ssh/code.emmathe.dev";
|
||||||
IdentitiesOnly = true;
|
IdentitiesOnly = true;
|
||||||
};
|
};
|
||||||
"dockerpi.inf.cbg.emmaisvery.gay" = {
|
|
||||||
User = "emmathorpe";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+3
-4
@@ -334,13 +334,12 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Night light. Manual location (no geoclue dependency); adjust the coordinates
|
# Night light. Manual location (no geoclue dependency); warmer at night,
|
||||||
# to taste. Warmer at night, neutral by day.
|
# neutral by day. Coordinates come from the per-user module (e.g.
|
||||||
|
# users/lyrathorpe/home.nix), not this shared module.
|
||||||
services.gammastep = {
|
services.gammastep = {
|
||||||
enable = true;
|
enable = true;
|
||||||
provider = "manual";
|
provider = "manual";
|
||||||
latitude = 51.5;
|
|
||||||
longitude = -0.13; # London-ish; set to your actual location
|
|
||||||
temperature = {
|
temperature = {
|
||||||
day = 6500;
|
day = 6500;
|
||||||
night = 3700;
|
night = 3700;
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
# Lyra's personal home extras, imported on her hosts (not the work box). Keeps
|
||||||
|
# personal data out of the shared home/ modules. See README "Users".
|
||||||
|
{ pkgs, lib, ... }:
|
||||||
|
{
|
||||||
|
# Personal ssh host shortcut.
|
||||||
|
programs.ssh.settings."dockerpi.inf.cbg.emmaisvery.gay" = {
|
||||||
|
User = "emmathorpe";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Night-light location for gammastep (the service itself is enabled by
|
||||||
|
# home/sway.nix on graphical hosts). Linux-guarded so Darwin, which imports
|
||||||
|
# this module but has no gammastep, skips it.
|
||||||
|
services.gammastep = lib.mkIf pkgs.stdenv.hostPlatform.isLinux {
|
||||||
|
latitude = 51.5;
|
||||||
|
longitude = -0.13;
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user