default.nix in most folders

This commit is contained in:
baduhai 2022-12-04 18:23:57 -03:00
parent 35a7b40dac
commit 0c7addbe0c
8 changed files with 58 additions and 29 deletions

View file

@ -70,7 +70,7 @@
user = "root";
sshUser = "root";
nodes = {
"alexandria" = {
alexandria = {
hostname = "alexandria";
profiles.system = {
remoteBuild = true;

13
hosts/common/default.nix Normal file
View file

@ -0,0 +1,13 @@
{ ... }:
{
imports = [
./boot.nix
./locale.nix
./networking.nix
./nix.nix
./packages.nix
./services.nix
./users.nix
];
}

View file

@ -0,0 +1,13 @@
{ ... }:
{
imports = [
./boot.nix
./hardware.nix
./nix.nix
./packages.nix
./services.nix
./users.nix
./virtualisation.nix
];
}

View file

@ -2,24 +2,12 @@
{
imports = [
# Host-specific imports
./io/hardware-configuration.nix
# Host-common imports
../common/networking.nix
../common/services.nix
../common/packages.nix
../common/locale.nix
../common/users.nix
../common/boot.nix
../common/nix.nix
../common
# Desktop-common imports
./common/virtualisation.nix
./common/hardware.nix
./common/services.nix
./common/packages.nix
./common/users.nix
./common/boot.nix
./common/nix.nix
./common
# Host-specific imports
./io
];
networking.hostName = "io";

View file

@ -0,0 +1,7 @@
{ ... }:
{
imports = [
./hardware-configuration.nix
];
}

View file

@ -2,20 +2,12 @@
{
imports = [
# Host-specific imports
./alexandria/hardware-configuration.nix
./alexandria/hosted-services.nix
# Host-common imports
../common/networking.nix
../common/packages.nix
../common/services.nix
../common/locale.nix
../common/users.nix
../common/boot.nix
../common/nix.nix
../common
# Server-common imports
./common/boot.nix
./common/nix.nix
./common
# Host-specific imports
./alexandria
];
users.users.user.extraGroups = [ "docker" ];

View file

@ -0,0 +1,8 @@
{ ... }:
{
imports = [
./hardware-configuration.nix
./hosted-services.nix
];
}

View file

@ -0,0 +1,8 @@
{ ... }:
{
imports = [
./boot.nix
./nix.nix
];
}