From 61fa1382f0048dd05d78e3b618337f5b2ef0fd34 Mon Sep 17 00:00:00 2001 From: Niccolo Borgioli <hi@nicco.io> Date: Tue, 28 Jan 2025 00:21:35 +0100 Subject: [PATCH] optionally include sflx packages --- home.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/home.nix b/home.nix index bd7ce46..e76b415 100644 --- a/home.nix +++ b/home.nix @@ -1,5 +1,5 @@ { host }: -{ pkgs, ... }: +{ pkgs, lib, ... }: { # https://nix-community.github.io/home-manager home.stateVersion = "25.05"; # Please read the comment before changing. @@ -9,7 +9,10 @@ home.homeDirectory = "/Users/${host.username}"; home.packages = - [ ] ++ (import ./home/shared.nix { inherit pkgs; }) ++ (import ./home/sflx.nix { inherit pkgs; }); + [ ] + ++ (import ./home/shared.nix { inherit pkgs; }) + # TODO: Move to host config + ++ lib.optionals (host.hostName == "sflx") (import ./home/sflx.nix { inherit pkgs; }); fonts.fontconfig.enable = true; @@ -32,8 +35,7 @@ rsync = "rsync -az --info=progress2"; t = "tmux new-session -A -s main"; e = "nvim"; - hms = "home-manager switch --flake ~/nix#root -b backup"; - snd = "darwin-rebuild switch --flake ~/.config/nix-darwin#mbp"; + vai = "darwin-rebuild switch --flake ~/.config/nix-darwin#${host.hostName}"; }; };