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
28 changed files
with
247 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
FenrirDocker = | ||
{ config, pkgs, ... }: | ||
{ | ||
deployment = { | ||
targetHost = "FenrirDocker"; | ||
targetPort = config.resources.hosts.fenrirDocker.ssh.port; | ||
}; | ||
}; | ||
} |
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 |
---|---|---|
@@ -1,11 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
nixops create home.nix Bur.nix Mimir.nix Skuld.nix -d home | ||
nixops destroy -d home 2> /dev/null | ||
nixops destroy -d cloud 2> /dev/null | ||
nixops destroy -d pcs 2> /dev/null | ||
nixops destroy -d servers 2> /dev/null | ||
nixops delete -d home 2> /dev/null | ||
nixops delete -d cloud 2> /dev/null | ||
nixops delete -d pcs 2> /dev/null | ||
nixops delete -d servers 2> /dev/null | ||
|
||
nixops create home.nix Bur.nix Mimir.nix Skuld.nix Fenrir.nix -d home | ||
nixops create cloud.nix Eldir.nix -d cloud | ||
nixops create pcs.nix Bur.nix Mimir.nix -d pcs | ||
nixops create servers.nix Eldir.nix Skuld.nix -d servers | ||
nixops create servers.nix Eldir.nix Skuld.nix Fenrir.nix -d servers | ||
|
||
nixops deploy -d home | ||
nixops deploy -d cloud | ||
nixops deploy -d pcs | ||
nixops deploy -d servers | ||
#nixops deploy -d home | ||
#nixops deploy -d cloud | ||
#nixops deploy -d pcs | ||
#nixops deploy -d servers |
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,13 @@ | ||
{ config, ... }: | ||
|
||
{ | ||
# BIOS | ||
# General settings | ||
boot.loader.timeout = 2; | ||
# GRUB | ||
boot.loader.grub = { | ||
enable = true; | ||
version = 2; | ||
device = "/dev/sda"; | ||
}; | ||
} |
File renamed without changes.
File renamed without changes.
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,36 @@ | ||
{ config, pkgs, ... }: | ||
|
||
{ | ||
imports = [ | ||
../../../resources/hosts/FenrirDocker | ||
../../../vendor/infrastructure-private/resources/hosts/FenrirDocker | ||
../../common.nix | ||
../../dev/bluetooth.nix | ||
../../dev/boot/grub-bios.nix | ||
../../dev/nfs.nix | ||
../../dev/wireguard-server.nix | ||
../../networks/home | ||
../../profiles/Server | ||
./hardware-configuration.nix | ||
]; | ||
|
||
networking.firewall.allowedTCPPorts = [ config.resources.hosts.fenrirDocker.ssh.port ]; | ||
services.openssh.ports = [ config.resources.hosts.fenrirDocker.ssh.port ]; | ||
|
||
networking.hosts = { | ||
# This part is used to define custom DNS records by my PiHole | ||
"${config.resources.hosts.bur.ip.default}" = [ "Bur" "${builtins.concatStringsSep " " config.resources.hosts.bur.extraDomains}" ]; | ||
"${config.resources.hosts.eldir.ip.default}" = [ "Eldir" "${builtins.concatStringsSep " " config.resources.hosts.eldir.extraDomains}" ]; | ||
"${config.resources.hosts.idunn.ip.default}" = [ "Idunn" "${builtins.concatStringsSep " " config.resources.hosts.idunn.extraDomains}" ]; | ||
"${config.resources.hosts.mimir.ip.default}" = [ "Mimir" "${builtins.concatStringsSep " " config.resources.hosts.mimir.extraDomains}" ]; | ||
"${config.resources.hosts.skuld.ip.default}" = [ "Skuld" "${builtins.concatStringsSep " " config.resources.hosts.skuld.extraDomains}" ]; | ||
"${config.resources.hosts.fenrir.ip.default}" = [ "Fenrir" "${builtins.concatStringsSep " " config.resources.hosts.fenrir.extraDomains}" ]; | ||
# Basic hostname already defined in the home profile | ||
"${config.resources.hosts.beyla.ip.default}" = [ "${builtins.concatStringsSep " " config.resources.hosts.beyla.extraDomains}" ]; | ||
"${config.resources.hosts.octopi.ip.default}" = [ "${builtins.concatStringsSep " " config.resources.hosts.octopi.extraDomains}" ]; | ||
# Basic hostname binded to localhost | ||
"${config.resources.hosts.fenrirDocker.ip.default}" = [ "${builtins.concatStringsSep " " config.resources.hosts.fenrirDocker.extraDomains}" ]; | ||
} // config.resources.hosts.extra; | ||
|
||
system.stateVersion = "19.09"; | ||
} |
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,24 @@ | ||
# 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/profiles/qemu-guest.nix> | ||
]; | ||
|
||
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sd_mod" "sr_mod" ]; | ||
boot.initrd.kernelModules = [ ]; | ||
boot.kernelModules = [ ]; | ||
boot.extraModulePackages = [ ]; | ||
|
||
fileSystems."/" = | ||
{ device = "/dev/disk/by-uuid/95112719-5914-4701-b56f-55effa844554"; | ||
fsType = "ext4"; | ||
}; | ||
|
||
swapDevices = [ ]; | ||
|
||
nix.maxJobs = lib.mkDefault 1; | ||
} |
File renamed without changes.
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.