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";
|
user = "root";
|
||||||
sshUser = "root";
|
sshUser = "root";
|
||||||
nodes = {
|
nodes = {
|
||||||
"alexandria" = {
|
alexandria = {
|
||||||
hostname = "alexandria";
|
hostname = "alexandria";
|
||||||
profiles.system = {
|
profiles.system = {
|
||||||
remoteBuild = true;
|
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 = [
|
imports = [
|
||||||
# Host-specific imports
|
|
||||||
./io/hardware-configuration.nix
|
|
||||||
# Host-common imports
|
# Host-common imports
|
||||||
../common/networking.nix
|
../common
|
||||||
../common/services.nix
|
|
||||||
../common/packages.nix
|
|
||||||
../common/locale.nix
|
|
||||||
../common/users.nix
|
|
||||||
../common/boot.nix
|
|
||||||
../common/nix.nix
|
|
||||||
# Desktop-common imports
|
# Desktop-common imports
|
||||||
./common/virtualisation.nix
|
./common
|
||||||
./common/hardware.nix
|
# Host-specific imports
|
||||||
./common/services.nix
|
./io
|
||||||
./common/packages.nix
|
|
||||||
./common/users.nix
|
|
||||||
./common/boot.nix
|
|
||||||
./common/nix.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "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 = [
|
imports = [
|
||||||
# Host-specific imports
|
|
||||||
./alexandria/hardware-configuration.nix
|
|
||||||
./alexandria/hosted-services.nix
|
|
||||||
# Host-common imports
|
# Host-common imports
|
||||||
../common/networking.nix
|
../common
|
||||||
../common/packages.nix
|
|
||||||
../common/services.nix
|
|
||||||
../common/locale.nix
|
|
||||||
../common/users.nix
|
|
||||||
../common/boot.nix
|
|
||||||
../common/nix.nix
|
|
||||||
# Server-common imports
|
# Server-common imports
|
||||||
./common/boot.nix
|
./common
|
||||||
./common/nix.nix
|
# Host-specific imports
|
||||||
|
./alexandria
|
||||||
];
|
];
|
||||||
|
|
||||||
users.users.user.extraGroups = [ "docker" ];
|
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