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 {
specialArgs = {inherit inputs;};
modules = [
./hosts/macos/configuration.nix
inputs.home-manager.darwinModules.default
];
};
};

View File

@ -1,10 +1,12 @@
{ pkgs, ... }:
{ pkgs, inputs, ... }:
{
# All imports go here
imports =
[
./modules.nix
# HomeManager
inputs.home-manager.darwinModules.default
];
# All System packages
@ -12,7 +14,21 @@
[
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
# 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;
}