mirror of
https://github.com/Alexandre1a/NixOSDots.git
synced 2026-03-10 00:09:46 +01:00
Added Home-Manager
This commit is contained in:
parent
93572fc845
commit
f8216eb2fa
@ -30,8 +30,10 @@
|
||||
};
|
||||
|
||||
darwinConfigurations.macOS = nix-darwin.lib.darwinSystem {
|
||||
specialArgs = {inherit inputs;};
|
||||
modules = [
|
||||
./hosts/macos/configuration.nix
|
||||
inputs.home-manager.darwinModules.default
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
@ -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
14
hosts/macos/home.nix
Normal 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;
|
||||
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user