dotfiles.nix/nixos/default.nix

32 lines
601 B
Nix

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