chloe: add more programs
This commit is contained in:
parent
63d08c5d30
commit
bbeb437872
7 changed files with 76 additions and 24 deletions
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Configuration applied to all of chloe's machines
|
||||
{ pkgs, ... }: {
|
||||
{pkgs, ...}: {
|
||||
# packages for all machines
|
||||
environment.systemPackages = with pkgs; [
|
||||
neovim
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
reaper
|
||||
];
|
||||
}
|
14
users/chloe/paperback/home.nix
Normal file
14
users/chloe/paperback/home.nix
Normal 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
|
||||
];
|
||||
}
|
|
@ -1,9 +1,4 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
ffmpeg
|
||||
ripgrep
|
||||
reaper
|
||||
];
|
||||
shared.darwin = {
|
||||
macAppStoreApps = [
|
||||
"final-cut-pro"
|
||||
|
|
Loading…
Reference in a new issue