dotfiles.nix/nixos/default.nix

32 lines
601 B
Nix
Raw Normal View History

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
2024-07-20 00:59:11 +00:00
inherit (config.me) username;
2024-07-18 14:16:04 +00:00
in
{
2024-07-20 00:59:11 +00:00
home-manager.users.${username} = {
2024-07-18 14:16:04 +00:00
imports = [ self.homeModules.linux ];
};
2024-07-20 00:59:11 +00:00
users.users.${username} = {
name = username;
home = "/home/${username}";
2024-07-18 14:16:04 +00:00
isNormalUser = true;
};
2023-10-26 02:37:42 +00:00
};
default.imports = [
self.nixosModules.home-manager
self.nixosModules.home
2023-10-26 02:37:42 +00:00
self.nixosModules.common
./ssh-access.nix
];
};
}