feature(modules): split configuration into nix modules and home-manager modules #2
@@ -2,7 +2,7 @@
|
||||
|
||||
{
|
||||
# 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
|
||||
environment.pathsToLink = [ "/libexec" ];
|
||||
|
||||
@@ -4,6 +4,13 @@
|
||||
# user config
|
||||
home.username = "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
|
||||
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
|
||||
services.syncthing.enable = true;
|
||||
# enable home manager
|
||||
programs.home-manager.enable = true;
|
||||
# don't change
|
||||
home.stateVersion = "25.11";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user