mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-31 19:47:15 +08:00
34 lines
798 B
Nix
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
|
|
];
|
|
};
|
|
};
|
|
}
|