-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
1,586 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ config, pkgs, ... }: | ||
let | ||
variables = import ../../common/variables.nix; | ||
in { | ||
imports = [ | ||
./hardware-configuration.nix | ||
../../common/sysconfig.nix | ||
../../services/ssh.nix | ||
]; | ||
|
||
# This value determines the NixOS release with which your system is to be | ||
# compatible, in order to avoid breaking some software such as database | ||
# servers. You should change this only after NixOS release notes say you | ||
# should. | ||
system.stateVersion = "20.09"; | ||
|
||
# Use the GRUB 2 boot loader. | ||
boot.loader.grub.enable = true; | ||
boot.loader.grub.version = 2; | ||
boot.loader.grub.devices = [ "/dev/sda" "/dev/sdb" ]; | ||
|
||
networking = { | ||
hostName = "metharme"; | ||
hostId = "1f03060e"; | ||
defaultGateway = "192.168.0.254"; | ||
interfaces.eno2.ipv4.addresses = [{ | ||
address = "192.168.0.156"; | ||
prefixLength = 24; | ||
}]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Do not modify this file! It was generated by ‘nixos-generate-config’ | ||
# and may be overwritten by future invocations. Please make changes | ||
# to /etc/nixos/configuration.nix instead. | ||
{ config, lib, pkgs, ... }: | ||
|
||
{ | ||
imports = | ||
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> | ||
]; | ||
|
||
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ata_piix" "mpt3sas" "usbhid" "sd_mod" "sr_mod" ]; | ||
boot.initrd.kernelModules = [ ]; | ||
boot.kernelModules = [ "kvm-intel" ]; | ||
boot.extraModulePackages = [ ]; | ||
|
||
fileSystems."/" = | ||
{ device = "zroot/nixos"; | ||
fsType = "zfs"; | ||
}; | ||
|
||
fileSystems."/nix" = | ||
{ device = "zroot/nixos/store"; | ||
fsType = "zfs"; | ||
}; | ||
|
||
swapDevices = | ||
[ { device = "/dev/disk/by-uuid/b99bbf80-002b-4c10-9d72-96195bb64f4f"; priority = 100; } | ||
{ device = "/dev/disk/by-uuid/49a2deff-5fcc-4736-895b-130202648b59"; priority = 100; } | ||
]; | ||
|
||
nix.maxJobs = lib.mkDefault 16; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ config, pkgs, ... }: | ||
let | ||
variables = import ../../common/variables.nix; | ||
in { | ||
imports = [ | ||
./hardware-configuration.nix | ||
../../common/sysconfig.nix | ||
../../services/ssh.nix | ||
../../services/libvirt.nix | ||
]; | ||
|
||
# This value determines the NixOS release with which your system is to be | ||
# compatible, in order to avoid breaking some software such as database | ||
# servers. You should change this only after NixOS release notes say you | ||
# should. | ||
system.stateVersion = "20.09"; | ||
|
||
# Use the GRUB 2 boot loader. | ||
boot.loader.grub.enable = true; | ||
boot.loader.grub.version = 2; | ||
boot.loader.grub.device = "/dev/sda"; | ||
|
||
networking = { | ||
hostName = "motherlode"; | ||
hostId = "fccc9415"; | ||
defaultGateway = "192.168.0.254"; | ||
} // (variables.bondConfig [ "eno1" "eno2" ] "192.168.0.130"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
{ | ||
imports = | ||
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> | ||
]; | ||
|
||
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ata_piix" "megaraid_sas" "usbhid" "sd_mod" "sr_mod" ]; | ||
boot.kernelModules = [ "kvm-intel" ]; | ||
boot.extraModulePackages = [ ]; | ||
|
||
fileSystems."/" = | ||
{ device = "/dev/disk/by-uuid/8c34aaec-4f61-4b29-a451-cd8e8d2bd394"; | ||
fsType = "ext4"; | ||
}; | ||
|
||
swapDevices = | ||
[ { device = "/dev/disk/by-uuid/28c3f2fd-7b98-4bf6-a778-f73b8064c381"; } | ||
]; | ||
|
||
nix.maxJobs = lib.mkDefault 8; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
icarus = { config, pkgs, ... }: { | ||
deployment.targetHost = "192.168.0.150"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
imports = [ | ||
./rsyslog.nix | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
# libksi has an outdated dependency on openssl_1_0_2 | ||
# We don't need it, so remove it from rsyslog | ||
nixpkgs.overlays = [ | ||
(self: super: { | ||
rsyslog = super.rsyslog.override { | ||
libksi = null; | ||
}; | ||
}) | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.