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.
|
# make 'shared.linux' not an error to define.
|
||||||
options.shared.linux = lib.mkOption {
|
options.shared.linux = lib.mkOption {
|
||||||
type = lib.types.anything;
|
type = lib.types.anything;
|
||||||
default = {};
|
default = {};
|
||||||
description = "no-op on darwin";
|
description = "no-op on darwin";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
{ lib, pkgs, ... }: {
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./boot.nix
|
./boot.nix
|
||||||
./ld.nix
|
./ld.nix
|
||||||
|
@ -7,8 +11,8 @@
|
||||||
];
|
];
|
||||||
# make 'shared.darwin' not an error to define.
|
# make 'shared.darwin' not an error to define.
|
||||||
options.shared.darwin = lib.mkOption {
|
options.shared.darwin = lib.mkOption {
|
||||||
type = lib.types.anything;
|
type = lib.types.anything;
|
||||||
default = {};
|
default = {};
|
||||||
description = "no-op on linux";
|
description = "no-op on linux";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Configuration applied to all of chloe's machines
|
# Configuration applied to all of chloe's machines
|
||||||
{ pkgs, ... }: {
|
{pkgs, ...}: {
|
||||||
# packages for all machines
|
# packages for all machines
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
neovim
|
neovim
|
||||||
|
|
|
@ -2,23 +2,67 @@
|
||||||
inputs,
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
|
host,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
hostServer = false;
|
||||||
|
in {
|
||||||
home = {
|
home = {
|
||||||
stateVersion = "23.05"; # Please read the comment before changing.
|
stateVersion = "23.05"; # Please read the comment before changing.
|
||||||
packages = [
|
packages = with pkgs; let
|
||||||
pkgs.neovim
|
# packages to always install
|
||||||
pkgs.nh
|
all = [
|
||||||
pkgs.ffmpeg
|
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 = {
|
programs = {
|
||||||
# sort-lines:start
|
# sort-lines:start
|
||||||
|
bat.enable = true;
|
||||||
|
btop.enable = true;
|
||||||
|
fd.enable = true;
|
||||||
hyfetch.enable = true;
|
hyfetch.enable = true;
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
# sort-lines:end
|
# sort-lines:end
|
||||||
|
|
||||||
# use a git-specific email
|
# use a git-specific email
|
||||||
git.userEmail = "git@paperclover.net";
|
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, ...}: {
|
{pkgs, ...}: {
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
ffmpeg
|
|
||||||
ripgrep
|
|
||||||
reaper
|
|
||||||
];
|
|
||||||
shared.darwin = {
|
shared.darwin = {
|
||||||
macAppStoreApps = [
|
macAppStoreApps = [
|
||||||
"final-cut-pro"
|
"final-cut-pro"
|
||||||
|
|
Loading…
Reference in a new issue