Skip to content

Commit

Permalink
feat: NR home
Browse files Browse the repository at this point in the history
  • Loading branch information
DavSanchez committed Jan 7, 2025
1 parent e4ba5d9 commit 85a678d
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 4 deletions.
9 changes: 8 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,18 @@
};
modules = [ ./home-manager/solio.nix ];
};
"david@nr" = home-manager.lib.homeManagerConfiguration {
"david@nr-vm" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.aarch64-linux;
extraSpecialArgs = {
inherit inputs;
};
modules = [ ./home-manager/home-nr-vm.nix ];
};
"davidsanchez@nr" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.aarch64-darwin;
extraSpecialArgs = {
inherit inputs;
};
modules = [ ./home-manager/home-nr.nix ];
};
};
Expand Down
67 changes: 67 additions & 0 deletions home-manager/home-nr-vm.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{ inputs, ... }:
{
imports = [
inputs.nixvim.homeManagerModules.nixvim
inputs.catppuccin.homeManagerModules.catppuccin
inputs.mac-app-util.homeManagerModules.default

./features/aws
./features/cli
./features/dev/default-nr.nix
./features/direnv
# ./features/emacs
./features/git
./features/git/signing-nr.nix
./features/neovim
./features/nu
./features/starship
./features/vscode
./features/zed
./features/zsh
./features/bash
./features/fish
./features/zellij
./features/terminals

./features/fonts.nix
./features/helix.nix
./features/tmux.nix
];

nixpkgs = {
overlays = [
inputs.self.overlays.additions
inputs.self.overlays.stable-packages
inputs.self.overlays.rosetta-packages
inputs.self.overlays.modifications
];
config = {
allowUnfree = true;
allowUnfreePredicate = _: true;
};
};

home = {
username = "david";
homeDirectory = "/home/david";
sessionVariables = {
DOTFILES = "$HOME/.dotfiles";
};
};

programs.zsh.cdpath = [ "/home/david/NR-Repos" ];
programs.zsh.shellAliases = {
sshCAOS = "ssh -i ~/.ssh/caos-dev-arm.cer -o \"StrictHostKeyChecking no\"";
};

programs.home-manager.enable = true;
programs.git.enable = true;

xdg.enable = true;

catppuccin.enable = true;
catppuccin.flavor = "mocha";

# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
home.stateVersion = "22.11";
}
6 changes: 3 additions & 3 deletions home-manager/home-nr.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@
};

home = {
username = "david";
homeDirectory = "/home/david";
username = "davidsanchez";
homeDirectory = "/Users/davidsanchez";
sessionVariables = {
DOTFILES = "$HOME/.dotfiles";
};
};

programs.zsh.cdpath = [ "/home/david/NR-Repos" ];
programs.zsh.cdpath = [ "/Users/davidsanchez/Developer/NR-Repos" ];
programs.zsh.shellAliases = {
sshCAOS = "ssh -i ~/.ssh/caos-dev-arm.cer -o \"StrictHostKeyChecking no\"";
};
Expand Down

0 comments on commit 85a678d

Please sign in to comment.