Skip to content

Instantly share code, notes, and snippets.

@adrianparvino
Last active July 13, 2019 18:52
Show Gist options
  • Save adrianparvino/3b137c454ecb9e2e8edbc384b61a695f to your computer and use it in GitHub Desktop.
Save adrianparvino/3b137c454ecb9e2e8edbc384b61a695f to your computer and use it in GitHub Desktop.
read -r -d '' CONFIGURATION <<EOF
{
imports =
[ <restore/configuration.nix>
/etc/nixos/duplicity-backup-config.nix
];
NixOSEncryptedLiveCD.rootdevice = "$ROOT_DEV";
NixOSEncryptedLiveCD.bootdevice = "$BOOT_DEV";
${DEBUG+NixOSEncryptedLiveCD.debug = $DEBUG;}
}
EOF
echo "$CONFIGURATION"
{
imports =
[ <restore/configuration.nix>
/etc/nixos/duplicity-backup-config.nix
];
NixOSEncryptedLiveCD.rootdevice = "/dev/disk/by-uuid/eeca998a-7922-4580-a932-4df6b6e3baea";
NixOSEncryptedLiveCD.bootdevice = "/dev/disk/by-uuid/53A9-8F0E";
NixOSEncryptedLiveCD.debug = https://_gateway:5000;
}
read -r -d '' CONFIGURATION <<EOF
{
imports =
[ <restore/configuration.nix>
/etc/nixos/duplicity-backup-config.nix
];
NixOSEncryptedLiveCD.rootdevice = "$ROOT_DEV";
NixOSEncryptedLiveCD.bootdevice = "$BOOT_DEV";
${DEBUG+NixOSEncryptedLiveCD.debug = "$DEBUG";}
}
EOF
echo "$CONFIGURATION"
{
imports =
[ <restore/configuration.nix>
/etc/nixos/duplicity-backup-config.nix
];
NixOSEncryptedLiveCD.rootdevice = "/dev/disk/by-uuid/8ea06c0a-b165-40b2-b0f9-97d2275dd4fe";
NixOSEncryptedLiveCD.bootdevice = "/dev/disk/by-uuid/56EF-0012";
NixOSEncryptedLiveCD.debug = https://_gateway:5000;
}
read -r -d '' CONFIGURATION <<EOF
{
imports =
[ <restore/configuration.nix>
/etc/nixos/duplicity-backup-config.nix
];
NixOSEncryptedLiveCD.rootdevice = "$ROOT_DEV";
NixOSEncryptedLiveCD.bootdevice = "$BOOT_DEV";
${DEBUG+NixOSEncryptedLiveCD.debug = ''$DEBUG'';}
}
EOF
echo "$CONFIGURATION"
{
imports =
[ <restore/configuration.nix>
/etc/nixos/duplicity-backup-config.nix
];
NixOSEncryptedLiveCD.rootdevice = "/dev/disk/by-uuid/8ea06c0a-b165-40b2-b0f9-97d2275dd4fe";
NixOSEncryptedLiveCD.bootdevice = "/dev/disk/by-uuid/56EF-0012";
NixOSEncryptedLiveCD.debug = ''https://_gateway:5000'';
}
{
imports =
[ <restore/configuration.nix>
/etc/nixos/duplicity-backup-config.nix
];
NixOSEncryptedLiveCD.rootdevice = "/dev/disk/by-uuid/8ea06c0a-b165-40b2-b0f9-97d2275dd4fe";
NixOSEncryptedLiveCD.bootdevice = "/dev/disk/by-uuid/56EF-0012";
NixOSEncryptedLiveCD.debug = "https://_gateway:5000";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment