fix setup

This commit is contained in:
Barrett Ruth 2026-02-11 15:53:04 -05:00
parent 2078269704
commit 21382e22a0
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
7 changed files with 8 additions and 16 deletions

View file

@ -76,6 +76,7 @@
home-manager.extraSpecialArgs = { home-manager.extraSpecialArgs = {
inherit zen-browser; inherit zen-browser;
hostPlatform = system; hostPlatform = system;
isNixOS = true;
}; };
} }
]; ];
@ -89,6 +90,7 @@
extraSpecialArgs = { extraSpecialArgs = {
inherit zen-browser; inherit zen-browser;
hostPlatform = system; hostPlatform = system;
isNixOS = false;
}; };
modules = [ ./home/home.nix ]; modules = [ ./home/home.nix ];
}; };

View file

@ -2,12 +2,10 @@
lib, lib,
config, config,
pkgs, pkgs,
isNixOS,
... ...
}: }:
let
isNixOS = builtins.pathExists /etc/NIXOS;
in
{ {
imports = [ imports = [
./modules/bootstrap.nix ./modules/bootstrap.nix

View file

@ -1,11 +1,8 @@
{ {
lib, lib,
isNixOS,
... ...
}: }:
let
isNixOS = builtins.pathExists /etc/NIXOS;
in
{ {
services.hypridle = { services.hypridle = {
enable = true; enable = true;

View file

@ -1,12 +1,11 @@
{ {
lib, lib,
config, config,
isNixOS,
... ...
}: }:
let let
isNixOS = builtins.pathExists /etc/NIXOS;
mkHyprTheme = palette: '' mkHyprTheme = palette: ''
general { general {
col.active_border = rgb(${builtins.substring 1 6 palette.fg}) col.active_border = rgb(${builtins.substring 1 6 palette.fg})

View file

@ -1,11 +1,9 @@
{ {
lib, lib,
isNixOS,
... ...
}: }:
let
isNixOS = builtins.pathExists /etc/NIXOS;
in
{ {
programs.hyprlock = { programs.hyprlock = {
enable = true; enable = true;

View file

@ -1,12 +1,10 @@
{ {
pkgs, pkgs,
lib, lib,
isNixOS,
... ...
}: }:
let
isNixOS = builtins.pathExists /etc/NIXOS;
in
{ {
home.packages = lib.mkIf isNixOS [ pkgs.hyprpaper ]; home.packages = lib.mkIf isNixOS [ pkgs.hyprpaper ];

View file

@ -2,12 +2,12 @@
pkgs, pkgs,
lib, lib,
config, config,
isNixOS,
... ...
}: }:
let let
c = config.colors; c = config.colors;
isNixOS = builtins.pathExists /etc/NIXOS;
ripgrep = config.programs.ripgrep.enable; ripgrep = config.programs.ripgrep.enable;