feature(modules): split configuration into nix modules and home-manager modules #2

Merged
aaron merged 34 commits from feature/modularize into main 2025-12-30 17:51:30 +00:00
2 changed files with 8 additions and 13 deletions
Showing only changes of commit d913c6cc02 - Show all commits

View File

@@ -2,7 +2,7 @@
{ {
# use flakes and nix command # use flakes and nix command
nix.settings.experimental-feature = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
# links /libexec from derivations to /run/current-system/sw # links /libexec from derivations to /run/current-system/sw
environment.pathsToLink = [ "/libexec" ]; environment.pathsToLink = [ "/libexec" ];

View File

@@ -4,6 +4,13 @@
# user config # user config
home.username = "aaron"; home.username = "aaron";
home.homeDirectory = "/home/aaron"; home.homeDirectory = "/home/aaron";
# set env vars
home.sessionVariables = {
EDITOR = "vim";
NH_FLAKE = "/home/aaron/git/nixconfig";
};
# don't change
home.stateVersion = "25.11";
# nixvim config # nixvim config
programs.nixvim = { programs.nixvim = {
@@ -137,20 +144,8 @@
}; };
}; };
# set env vars
home.sessionVariables = {
EDITOR = "vim";
};
# add flake env variable for nh
environment.sessionVariables = {
NH_FLAKE = "/home/aaron/git/nixconfig";
};
# enable syncthing for user # enable syncthing for user
services.syncthing.enable = true; services.syncthing.enable = true;
# enable home manager # enable home manager
programs.home-manager.enable = true; programs.home-manager.enable = true;
# don't change
home.stateVersion = "25.11";
} }