Skip to content

Commit

Permalink
Add macbook configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystucki committed Jun 18, 2024
1 parent d6c35d2 commit f9155da
Show file tree
Hide file tree
Showing 13 changed files with 338 additions and 110 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ jobs:
fail-fast: false
matrix:
configuration:
- "nixosConfigurations.x86_64-linux.volt-nixos.config.system.build.toplevel"
- "nixosConfigurations.x86_64-linux.zephyr-nixos.config.system.build.toplevel"
- "nixosConfigurations.volt-nixos.config.system.build.toplevel"
- "nixosConfigurations.zephyr-nixos.config.system.build.toplevel"
- 'darwinConfigurations.work-macbook.system'

runs-on: ubuntu-latest

Expand Down
9 changes: 9 additions & 0 deletions common/apps.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{ pkgs, pkgs-unstable, ... }:

{
home.packages = [
pkgs.obsidian
pkgs-unstable.discord
pkgs-unstable.spotify
];
}
35 changes: 18 additions & 17 deletions common/home-manager.nix
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
{
imports = map (x: ../components + x) [
/alacritty.nix
/cli.nix
/code.nix
/common-apps.nix
/cpp.nix
/dotnet.nix
/gcloud.nix
/git.nix
/haskell.nix
/tex.nix
/tmux.nix
/typst.nix
/vim.nix
/zsh.nix
];
imports =
[ ./apps.nix ]
++ map (x: ../components + x) [
/alacritty.nix
/android.nix
/cli.nix
/code.nix
/databases.nix
/dotnet.nix
/gcloud.nix
/git.nix
/java.nix
/tex.nix
/tmux.nix
/typst.nix
/vim.nix
/zsh.nix
];

home.username = "jeremy";
home.homeDirectory = "/home/jeremy";
home.stateVersion = "23.05";

programs.home-manager.enable = true;
Expand Down
7 changes: 5 additions & 2 deletions common/nixos-home-manager.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ let
in
{
imports = map (x: ../components + x) [
/android.nix
/databases.nix
/common-apps.nix
/cpp.nix
/haskell.nix
/web.nix
];

home.homeDirectory = "/home/jeremy";

programs.git.extraConfig = {
commit.gpgsign = true;
user.signingkey = publicKey;
Expand Down
7 changes: 3 additions & 4 deletions components/android.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{ pkgs, pkgs-unstable, ... }:

{
home.packages = with pkgs; [
android-tools
pkgs-unstable.android-studio
];
home.packages =
with pkgs;
[ android-tools ] ++ lib.optional (!stdenv.isDarwin) [ pkgs-unstable.android-studio ];
}
65 changes: 35 additions & 30 deletions components/cli.nix
Original file line number Diff line number Diff line change
@@ -1,36 +1,41 @@
{ pkgs, pkgs-unstable, ... }:

{
home.packages = with pkgs; [
asciinema
bat
caddy
delta
dogdns
du-dust
entr
fd
ffmpeg-full
file
miller
multipath-tools
ngrok
nmap
nodePackages.svgo
ocrmypdf
ollama
pdftk
pkgs-unstable.nixfmt-rfc-style
ranger
ripgrep
tesseract
tokei
tree
units
wol
yt-dlp
zip
];
home.packages =
with pkgs;
[
asciinema
bat
caddy
delta
dogdns
du-dust
entr
fd
ffmpeg-full
file
mani
miller
nmap
nodePackages.svgo
ocrmypdf
ollama
pdftk
pkgs-unstable.nixfmt-rfc-style
ranger
ripgrep
tesseract
tokei
tree
units
yt-dlp
zip
]
++ lib.optional (!stdenv.isDarwin) [
multipath-tools
ngrok
wol
];

programs.bat.enable = true;
programs.jq.enable = true;
Expand Down
12 changes: 7 additions & 5 deletions components/databases.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{ pkgs, ... }:

{
home.packages = with pkgs; [
postgresql
sqlite
jetbrains.datagrip
];
home.packages =
with pkgs;
[
postgresql
sqlite
]
++ lib.optional (!stdenv.isDarwin) [ jetbrains.datagrip ];

home.file.".psqlrc".text = ''
\set ON_ERROR_ROLLBACK interactive
Expand Down
4 changes: 2 additions & 2 deletions components/dotnet.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
pkgs-unstable.dotnet-sdk_8
pkgs-unstable.dotnet-aspnetcore_8
])
pkgs-unstable.jetbrains.rider
];
]
++ lib.optional (!stdenv.isDarwin) [ pkgs-unstable.jetbrains.rider ];
}
8 changes: 8 additions & 0 deletions components/java.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{ pkgs, ... }:

{
programs.java = {
enable = true;
package = pkgs.openjdk17;
};
}
1 change: 1 addition & 0 deletions components/vim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
catppuccin-nvim
fzf-vim
kotlin-vim
nerdtree
vim-commentary
vim-fugitive
vim-nix
Expand Down
13 changes: 13 additions & 0 deletions darwin-home-manager.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{ pkgs, ... }:

{
home.packages = with pkgs; [
bundler
element-desktop
iterm2
kitty
xcodes
];

home.homeDirectory = "/Users/jeremy";
}
Loading

0 comments on commit f9155da

Please sign in to comment.