nixos-config/nixos/default.nix
2022-12-03 21:57:30 -05:00

34 lines
798 B
Nix

{ self, inputs, config, ... }:
let
mkHomeModule = name: extraModules: {
users.users.${name}.isNormalUser = true;
home-manager.users.${name} = {
imports = [
self.homeModules.common-linux
../home/git.nix
] ++ extraModules;
};
};
in
{
# Configuration common to all Linux systems
flake = {
nixosModules = {
guests.imports = [
# Temporarily sharing with Uday, until he gets better machine.
(mkHomeModule "uday" [ ])
];
myself = mkHomeModule config.people.myself [
../home/shellcommon.nix
];
default.imports = [
self.nixosModules.home-manager
self.nixosModules.myself
./caches
./self-ide.nix
./takemessh
./current-location.nix
];
};
};
}