dotfiles.nix/nixos/default.nix

23 lines
501 B
Nix

{ self, config, ... }: {
flake.nixosModules = {
common.imports = [ ./nix.nix ./caches ];
me = let inherit (config.people) me;
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.me
self.nixosModules.common
./ssh-access.nix
];
};
}