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