Benjamin Bädorf
e8ad662631
This commit changes the file structure around, so that we have the following parts: `/modules` contains reusable logic blocks for hosts. `/hosts` contains host configurations. `/lib` contains nix library functions. `/overlays` contains overlay files. `/public-keys` contains all information regarding public keys. This change reduces the complexity of flake.nix, instead delegating this out to the `default.nix` files in the above directories.
27 lines
561 B
Nix
27 lines
561 B
Nix
{ self, ... }:
|
|
{
|
|
flake = {
|
|
nixosModules = rec {
|
|
nix = import ./nix.nix;
|
|
networking = import ./networking.nix;
|
|
unlock-zfs-on-boot = import ./unlock-zfs-on-boot.nix;
|
|
docker = import ./docker.nix;
|
|
terminal-tooling = import ./terminal-tooling.nix;
|
|
users = import ./users.nix;
|
|
|
|
core = {
|
|
imports = [
|
|
nix
|
|
networking
|
|
terminal-tooling
|
|
users
|
|
];
|
|
|
|
home-manager.users.${self.username} = {
|
|
home.stateVersion = "23.05";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|