default.nix in most folders
This commit is contained in:
parent
35a7b40dac
commit
0c7addbe0c
8 changed files with 58 additions and 29 deletions
|
|
@ -70,7 +70,7 @@
|
|||
user = "root";
|
||||
sshUser = "root";
|
||||
nodes = {
|
||||
"alexandria" = {
|
||||
alexandria = {
|
||||
hostname = "alexandria";
|
||||
profiles.system = {
|
||||
remoteBuild = true;
|
||||
|
|
|
|||
13
hosts/common/default.nix
Normal file
13
hosts/common/default.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./boot.nix
|
||||
./locale.nix
|
||||
./networking.nix
|
||||
./nix.nix
|
||||
./packages.nix
|
||||
./services.nix
|
||||
./users.nix
|
||||
];
|
||||
}
|
||||
13
hosts/desktops/common/default.nix
Normal file
13
hosts/desktops/common/default.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./boot.nix
|
||||
./hardware.nix
|
||||
./nix.nix
|
||||
./packages.nix
|
||||
./services.nix
|
||||
./users.nix
|
||||
./virtualisation.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -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";
|
||||
|
|
|
|||
7
hosts/desktops/io/default.nix
Normal file
7
hosts/desktops/io/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -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" ];
|
||||
|
|
|
|||
8
hosts/servers/alexandria/default.nix
Normal file
8
hosts/servers/alexandria/default.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./hosted-services.nix
|
||||
];
|
||||
}
|
||||
8
hosts/servers/common/default.nix
Normal file
8
hosts/servers/common/default.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./boot.nix
|
||||
./nix.nix
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue