dotfiles.nix/nixos/default.nix

23 lines
504 B
Nix
Raw Normal View History

2023-10-26 02:37:42 +00:00
{ self, config, ... }: {
flake.nixosModules = {
common.imports = [ ./nix.nix ./caches ];
home = let inherit (config.users) me;
2023-10-26 02:37:42 +00:00
in {
home-manager.users.${me} = { imports = [ self.homeModules.linux ]; };
users.users.${me} = {
name = me;
home = "/home/${me}";
isNormalUser = true;
};
};
default.imports = [
self.nixosModules.home-manager
self.nixosModules.home
2023-10-26 02:37:42 +00:00
self.nixosModules.common
./ssh-access.nix
];
};
}