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