I Like To Move It
This commit is contained in:
parent
6e70d8fc47
commit
cd6374e641
4
deploy
4
deploy
@ -1,6 +1,6 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
#
|
#
|
||||||
# usage: ./deploy CONFIG [[USER@]HOST]
|
# usage: ./deploy HOST [[USER@]HOST]
|
||||||
#
|
#
|
||||||
set -euf
|
set -euf
|
||||||
|
|
||||||
@ -9,7 +9,7 @@ set -euf
|
|||||||
user=root
|
user=root
|
||||||
host=$1
|
host=$1
|
||||||
|
|
||||||
config=./$host.nix
|
config=./modules/$host/default.nix
|
||||||
target=${2-$user@$host}
|
target=${2-$user@$host}
|
||||||
|
|
||||||
verbose deploy "$config" "$target"
|
verbose deploy "$config" "$target"
|
||||||
|
2
infest
2
infest
@ -76,7 +76,7 @@ infest_centos7_64bit() {
|
|||||||
target="root@$address"
|
target="root@$address"
|
||||||
|
|
||||||
./networking-configuration $cac_servername $hostname \
|
./networking-configuration $cac_servername $hostname \
|
||||||
> modules/networking-$hostname.nix
|
> modules/$hostname/networking.nix
|
||||||
|
|
||||||
echo '(
|
echo '(
|
||||||
set -xeuf
|
set -xeuf
|
||||||
|
@ -4,13 +4,13 @@
|
|||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
<secrets/hashedPasswords.nix>
|
<secrets/hashedPasswords.nix>
|
||||||
./modules/sanitize.nix
|
./iptables.nix
|
||||||
./modules/base-cac-CentOS-7-64bit.nix
|
./networking.nix
|
||||||
./modules/exim-cd.nix
|
../tv/base-cac-CentOS-7-64bit.nix
|
||||||
./modules/ejabberd-cd.nix # XXX echtes modul
|
../tv/ejabberd.nix # XXX echtes modul
|
||||||
./modules/iptables-cd.nix
|
../tv/exim-smarthost.nix
|
||||||
./modules/networking-cd.nix
|
../tv/retiolum.nix
|
||||||
./modules/retiolum.nix
|
../tv/sanitize.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# "Developer 2" plan has two vCPUs.
|
# "Developer 2" plan has two vCPUs.
|
||||||
@ -54,7 +54,7 @@
|
|||||||
|
|
||||||
services.retiolum = {
|
services.retiolum = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hosts = ./hosts;
|
hosts = /etc/nixos/hosts;
|
||||||
privateKeyFile = "/etc/nixos/secrets/cd.retiolum.rsa_key.priv";
|
privateKeyFile = "/etc/nixos/secrets/cd.retiolum.rsa_key.priv";
|
||||||
connectTo = [
|
connectTo = [
|
||||||
"fastpoke"
|
"fastpoke"
|
@ -1,7 +1,7 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (import ../lib { inherit pkgs; }) shell-escape;
|
inherit (import ../../lib { inherit pkgs; }) shell-escape;
|
||||||
inherit (pkgs) writeScript;
|
inherit (pkgs) writeScript;
|
||||||
in
|
in
|
||||||
|
|
@ -3,7 +3,7 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
lib = import ./lib { inherit pkgs; };
|
lib = import ../../lib { inherit pkgs; };
|
||||||
|
|
||||||
inherit (lib) majmin;
|
inherit (lib) majmin;
|
||||||
in
|
in
|
||||||
@ -11,9 +11,9 @@ in
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
<secrets/hashedPasswords.nix>
|
<secrets/hashedPasswords.nix>
|
||||||
./modules/sanitize.nix
|
../tv/exim-retiolum.nix
|
||||||
./modules/exim.nix
|
../tv/retiolum.nix
|
||||||
./modules/retiolum.nix
|
../tv/sanitize.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
time.timeZone = "Europe/Berlin";
|
time.timeZone = "Europe/Berlin";
|
@ -5,7 +5,7 @@ let
|
|||||||
inherit (lib.strings) concatStringsSep stringAsChars;
|
inherit (lib.strings) concatStringsSep stringAsChars;
|
||||||
inherit (lib.attrsets) attrValues mapAttrs;
|
inherit (lib.attrsets) attrValues mapAttrs;
|
||||||
inherit (lib) makeSearchPath;
|
inherit (lib) makeSearchPath;
|
||||||
inherit (import ../lib { inherit pkgs; }) shell-escape;
|
inherit (import ../../lib { inherit pkgs; }) shell-escape;
|
||||||
|
|
||||||
|
|
||||||
# TODO make these scripts available in an maintenance shell
|
# TODO make these scripts available in an maintenance shell
|
@ -189,7 +189,7 @@ let
|
|||||||
sudoers =
|
sudoers =
|
||||||
let
|
let
|
||||||
inherit (builtins) filter hasAttr;
|
inherit (builtins) filter hasAttr;
|
||||||
inherit (import ../lib { inherit pkgs; }) concat isSuffixOf removeSuffix setToList;
|
inherit (import ../../lib { inherit pkgs; }) concat isSuffixOf removeSuffix setToList;
|
||||||
|
|
||||||
hasMaster = { group ? "", ... }:
|
hasMaster = { group ? "", ... }:
|
||||||
isSuffixOf "-sub" group;
|
isSuffixOf "-sub" group;
|
@ -1,25 +1,25 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
lib = import ./lib { inherit pkgs; };
|
lib = import ../../lib { inherit pkgs; };
|
||||||
|
|
||||||
inherit (lib) majmin;
|
inherit (lib) majmin;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./modules/sanitize.nix
|
./hosts.nix
|
||||||
./modules/base.nix
|
./iptables.nix
|
||||||
./modules/retiolum.nix
|
../tv/base.nix
|
||||||
./modules/urxvt-tv.nix
|
../tv/exim-retiolum.nix
|
||||||
./modules/iptables.nix
|
../tv/nginx.nix
|
||||||
./modules/users.nix
|
../tv/retiolum.nix
|
||||||
#./modules/tools.nix
|
../tv/sanitize.nix
|
||||||
./modules/hosts.nix
|
../tv/synaptics.nix
|
||||||
./modules/xserver.nix
|
#../tv/tools.nix
|
||||||
./modules/synaptics.nix
|
../tv/urxvt.nix
|
||||||
./modules/exim.nix
|
../tv/users.nix
|
||||||
./modules/nginx.nix
|
../tv/xserver.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
Loading…
Reference in New Issue
Block a user