move home manager configuration to machine
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
keys = import ../../keys.nix;
|
||||
in
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
inputs.home-manager.darwinModules.home-manager
|
||||
../../modules/common/sane-defaults
|
||||
../../modules/common/users
|
||||
];
|
||||
@@ -14,6 +17,15 @@ in
|
||||
sane-defaults.enable = true;
|
||||
};
|
||||
|
||||
# # Home Manager configuration
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.yadunut = {
|
||||
imports = [
|
||||
./homes/yadunut.nix
|
||||
inputs.nixvim.homeModules.nixvim
|
||||
];
|
||||
};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
homebrew = {
|
||||
@@ -31,6 +43,7 @@ in
|
||||
"datagrip"
|
||||
"discord"
|
||||
"fantastical"
|
||||
"fastmail"
|
||||
"ghostty"
|
||||
"google-chrome"
|
||||
"iina"
|
||||
@@ -51,7 +64,6 @@ in
|
||||
"slack"
|
||||
"spotify"
|
||||
"steam"
|
||||
"superwhisper"
|
||||
"syncthing-app"
|
||||
"tailscale"
|
||||
"tailscale-app"
|
||||
|
||||
51
machines/yadunut-mbp/homes/yadunut.nix
Normal file
51
machines/yadunut-mbp/homes/yadunut.nix
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
_class,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
keys = import ../../../keys.nix;
|
||||
config = {
|
||||
nut = {
|
||||
git = {
|
||||
enable = true;
|
||||
gpgProgram = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign";
|
||||
signingKey = keys.user.yadunut;
|
||||
};
|
||||
zsh.enable = true;
|
||||
neovim.enable = true;
|
||||
};
|
||||
home.username = "yadunut";
|
||||
home.packages = [
|
||||
pkgs.entr
|
||||
pkgs.jq
|
||||
pkgs.just
|
||||
pkgs.rsync
|
||||
pkgs.codex
|
||||
pkgs.dive
|
||||
pkgs.cachix
|
||||
pkgs.ouch
|
||||
|
||||
pkgs.nil
|
||||
pkgs.nixd
|
||||
|
||||
pkgs.claude-code
|
||||
pkgs.codex
|
||||
pkgs.amp-cli
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
programs.home-manager.enable = true;
|
||||
home.stateVersion = "25.05";
|
||||
};
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
config
|
||||
../../../modules/home/git
|
||||
../../../modules/home/zsh
|
||||
../../../modules/home/neovim
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user