chloe: add more programs

This commit is contained in:
chloe caruso 2025-05-08 00:19:14 -07:00
parent 63d08c5d30
commit bbeb437872
7 changed files with 76 additions and 24 deletions

View file

@ -13,8 +13,8 @@
];
# make 'shared.linux' not an error to define.
options.shared.linux = lib.mkOption {
type = lib.types.anything;
default = {};
description = "no-op on darwin";
type = lib.types.anything;
default = {};
description = "no-op on darwin";
};
}

View file

@ -1,4 +1,8 @@
{ lib, pkgs, ... }: {
{
lib,
pkgs,
...
}: {
imports = [
./boot.nix
./ld.nix
@ -7,8 +11,8 @@
];
# make 'shared.darwin' not an error to define.
options.shared.darwin = lib.mkOption {
type = lib.types.anything;
default = {};
description = "no-op on linux";
type = lib.types.anything;
default = {};
description = "no-op on linux";
};
}

View file

@ -1,5 +1,5 @@
# Configuration applied to all of chloe's machines
{ pkgs, ... }: {
{pkgs, ...}: {
# packages for all machines
environment.systemPackages = with pkgs; [
neovim

View file

@ -2,23 +2,67 @@
inputs,
pkgs,
lib,
host,
...
}: {
}: let
hostServer = false;
in {
home = {
stateVersion = "23.05"; # Please read the comment before changing.
packages = [
pkgs.neovim
pkgs.nh
pkgs.ffmpeg
];
packages = with pkgs; let
# packages to always install
all = [
ffmpeg
ripgrep
];
# packages to install for desktop environments (non-server)
desktop = [
];
# packages to install on all servers
server = [];
# packages to install on macOS desktops
darwin = [
raycast
];
# packages to install on linux desktops
linux = [
reaper # TODO: why does this break on macOS
];
in
all
++ (
if host.darwin
then darwin
else linux
)
++ (
if hostServer
then server
else desktop
);
};
programs = {
# sort-lines:start
bat.enable = true;
btop.enable = true;
fd.enable = true;
hyfetch.enable = true;
zsh.enable = true;
# sort-lines:end
# use a git-specific email
git.userEmail = "git@paperclover.net";
ssh = {
enable = true;
matchBlocks = rec {
zenith = {
hostname = "192.168.86.50";
user = "clo";
port = 222;
};
"nas.paperclover.net" = zenith;
};
};
};
}

View file

@ -1,5 +0,0 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
reaper
];
}

View file

@ -0,0 +1,14 @@
{pkgs, ...}: {
# these programs are not globally installed to reduce distractions.
# most of these are needed for my work environment.
programs.bun.enable = true;
programs.zed-editor.enable = true;
home.packages = with pkgs; [
doppler
nodejs_22
rustup
typescript
pm2
pnpm
];
}

View file

@ -1,9 +1,4 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
ffmpeg
ripgrep
reaper
];
shared.darwin = {
macAppStoreApps = [
"final-cut-pro"