split config into user and system dirs
This commit is contained in:
parent
64d41242fd
commit
9e33f85778
|
|
@ -27,14 +27,14 @@
|
||||||
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
./configuration.nix
|
system/configuration.nix
|
||||||
overlays
|
overlays
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
homeConfigurations.ahnwuoa = home-manager.lib.homeManagerConfiguration {
|
homeConfigurations.ahnwuoa = home-manager.lib.homeManagerConfiguration {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
modules = [
|
modules = [
|
||||||
./home.nix
|
user/home.nix
|
||||||
overlays
|
overlays
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
let
|
let
|
||||||
username = "ahnwuoa";
|
username = "ahnwuoa";
|
||||||
homeDirectory = "/home/${username}";
|
homeDirectory = "/home/${username}";
|
||||||
mkln = x: config.lib.file.mkOutOfStoreSymlink "${homeDirectory}/.local/nixos/${x}";
|
mkln = x: config.lib.file.mkOutOfStoreSymlink "${homeDirectory}/.local/nixos/user/${x}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.username = username;
|
home.username = username;
|
||||||
Loading…
Reference in a new issue