Skip to content

Instantly share code, notes, and snippets.

View jefftp's full-sized avatar

Jeff T. Polczynski jefftp

View GitHub Profile
@jefftp
jefftp / disko-config-btrfs.nix
Created May 20, 2024 01:52
NixOS Disko configuration for a BTRFS based partitioning scheme
# Partition Layout
#
# /boot - FAT32 - 1G
# volume - BTRFS - Rest of Disk
# /root - Subvol - /
# /home - Subvol - /home
# /nix - Subvol - /nix
#
{
disko.devices = {
@jefftp
jefftp / disko-config.nix
Last active August 13, 2024 16:21
NixOS Disko partition configuration LVM/EXT4
{
disko.devices = {
disk.sda = {
type = "disk";
device = "/dev/sda";
content = {
type = "gpt";
partitions = {
ESP = {
type = "EF00";
@jefftp
jefftp / ilandListBackupFiles.ps1
Last active June 15, 2021 21:16
This is a quick Veeam PowerShell script to list the backup files stored in your iland Secure Cloud Backup repository
Asnp VeeamPSSnapin
# Edit the name to match your iland Cloud Repository name.
$repo = Get-VBRBackupRepository -Name "iland Cloud Repository"
$job = Get-VBRJob | Where {$_.info.TargetRepositoryId -eq $repo.id}
(Get-VBRBackup -Name $job.name).GetAllStorages() | Select @{N="File"; E={$_.FilePath}}, @{N="Size (GB)"; E={[Math]::Round($_.Stats.BackupSize / 1GB, 1)}} | Format-Table -AutoSize