feat(nixos:nh): add conditional to FLAKE variable
This commit is contained in:
parent
3ccb3b740a
commit
3328ba2d3f
1 changed files with 2 additions and 2 deletions
|
|
@ -3,12 +3,12 @@
|
||||||
let
|
let
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkIf;
|
||||||
host = config.ooknet.host;
|
host = config.ooknet.host;
|
||||||
|
admin = host.admin;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
config = mkIf (host.type != "phone") {
|
config = mkIf (host.type != "phone") {
|
||||||
# TODO: i dont't want to hardcode this.
|
environment.variables.FLAKE = mkIf admin.homeManager "/home/${admin.name}/.config/ooknet/";
|
||||||
environment.variables.FLAKE = "/home/ooks/.config/ooknet/";
|
|
||||||
|
|
||||||
programs.nh = {
|
programs.nh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue