move home manager configuration to machine

This commit is contained in:
2025-11-04 02:38:41 +08:00
parent f4cfe371f7
commit 2a395c3d3a
6 changed files with 43 additions and 57 deletions

View File

@@ -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"

View 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
];
}