Added Home-Manager

This commit is contained in:
Alexandre1a 2025-12-03 18:20:11 +01:00
parent 93572fc845
commit f8216eb2fa
No known key found for this signature in database
GPG Key ID: CE01C28FBC5EEF10
3 changed files with 34 additions and 2 deletions

View File

@ -30,8 +30,10 @@
}; };
darwinConfigurations.macOS = nix-darwin.lib.darwinSystem { darwinConfigurations.macOS = nix-darwin.lib.darwinSystem {
specialArgs = {inherit inputs;};
modules = [ modules = [
./hosts/macos/configuration.nix ./hosts/macos/configuration.nix
inputs.home-manager.darwinModules.default
]; ];
}; };
}; };

View File

@ -1,10 +1,12 @@
{ pkgs, ... }: { pkgs, inputs, ... }:
{ {
# All imports go here # All imports go here
imports = imports =
[ [
./modules.nix ./modules.nix
# HomeManager
inputs.home-manager.darwinModules.default
]; ];
# All System packages # All System packages
@ -13,6 +15,20 @@
pkgs.vim pkgs.vim
]; ];
# HomeManager
home-manager = {
extraSpecialArgs = { inherit inputs; };
users = {
"alex" = import ./home.nix;
};
};
# Use ZSH as the shell
programs = {
zsh = {
enable = true;
enableAutosuggestions = true;
};
};
# Enable required settings # Enable required settings
# Flakes # Flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];

14
hosts/macos/home.nix Normal file
View File

@ -0,0 +1,14 @@
{
# Refer to the nixOS host for info about home-manager
home.username = "alex";
home.homeDirecotry = "/Users/alex";
home.stateVersion = "25.11";
home.packages = [
pkgs.hello
];
programs.home-manager.enable = true;
}