-
-
Save devzero/d65966fd1bfbaa094048f82565e8750f to your computer and use it in GitHub Desktop.
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
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ | |
./hardware-configuration.nix | |
]; | |
nix.gc.automatic = true; | |
system.autoUpgrade.enable = true; | |
system.stateVersion = "20.03"; # Did you read the comment? | |
time.timeZone = "America/New_York"; | |
boot = { | |
loader = { | |
systemd-boot.enable = true; | |
efi.canTouchEfiVariables = true; | |
grub.device = "/dev/sda"; | |
}; | |
initrd.luks.devices = { | |
root = { | |
device = "/dev/disk/by-uuid/7cf6e2a8-5c1e-4d28-86d6-0198ea0a8d62"; #"/dev/sda3"; | |
preLVM = true; | |
}; | |
"WD-WX11D38E2PS3".device = "/dev/disk/by-uuid/7e6946f3-136c-4cf0-8ee2-b84e5b85260b"; | |
"WD-WX41D948YS8K".device = "/dev/disk/by-uuid/bc2f87f4-93b2-4635-b4aa-2b5c66e56623"; | |
"JEG89VPN".device = "/dev/disk/by-uuid/b4eddc6a-c319-4abf-bb57-7321ff9a3564"; | |
"2YJ29SYD".device = "/dev/disk/by-uuid/8ed25a79-1edb-4323-aed4-d6b56d52e5a4"; | |
"JEG78N1N".device = "/dev/disk/by-uuid/e5160843-8c8f-4b93-aafc-1be197f2a1ae"; | |
"WD-WX11D4416779".device = "/dev/disk/by-uuid/d6ba04fc-3727-470b-88fa-f7415108b800"; | |
"WD-WX91D65351DR".device = "/dev/disk/by-uuid/3b04ec95-9295-49e8-a164-2191939f5c0c"; | |
"16G0MA9Z".device = "/dev/disk/by-uuid/78144f92-03c3-49b9-92df-d91992094c2d"; | |
"WD-WXB1HB4UM71H".device = "/dev/disk-by-uuid/7075d503-2e3d-45d5-89d7-03bebbba0000"; | |
}; | |
tmpOnTmpfs = true; | |
}; | |
fileSystems = { | |
"/disks/WD-WX11D38E2PS3".device = "/dev/mapper/WD-WX11D38E2PS3"; | |
"/disks/WD-WX41D948YS8K".device = "/dev/mapper/WD-WX41D948YS8K"; | |
"/disks/JEG89VPN".device = "/dev/mapper/JEG89VPN"; | |
"/disks/2YJ29SYD".device = "/dev/mapper/2YJ29SYD"; | |
"/disks/JEG78N1N".device = "/dev/mapper/JEG78N1N"; | |
"/disks/WD-WX11D4416779".device = "/dev/mapper/WD-WX11D4416779"; | |
"/disks/WD-WX91D65351DR".device = "/dev/mapper/WD-WX91D65351DR"; | |
"/disks/16G0MA9Z".device = "/dev/mapper/16G0MA9Z"; | |
"/disks/WD-WXB1HB4UM71H".device = "/dev/mapper/WD-WXB1HB4UM71H"; | |
}; | |
security = { | |
sudo.wheelNeedsPassword = false; | |
lockKernelModules = true; | |
rngd.enable = true; | |
}; | |
networking = { | |
hostName = "servar"; | |
firewall.enable = false; | |
useDHCP = false; | |
interfaces.eno1.useDHCP = true; | |
}; | |
virtualisation = { | |
docker.enable = true; | |
}; | |
i18n.defaultLocale = "en_US.UTF-8"; | |
console = { | |
font = "Lat2-Terminus16"; | |
keyMap = "us"; | |
}; | |
services = { | |
openssh.enable = true; | |
fstrim.enable = true; | |
cron = { | |
enable = true; | |
systemCronJobs = [ | |
"30 6 * * * root snapraid sync >> /tmp/cron.log" | |
]; | |
}; | |
samba = { | |
enable = true; | |
enableNmbd = true; | |
shares = { data = { browseable = "yes"; comment = "Public samba share."; "guest ok" = "yes"; path = "/data/"; "read only" = false; }; }; | |
}; | |
}; | |
environment = { | |
homeBinInPath = true; | |
variables = { | |
BAT_PAGER = "less"; | |
PAGER = "bat"; | |
EDITOR = "vim"; | |
TERM = "xterm-color"; | |
}; | |
}; | |
programs = { | |
bash = { | |
enableCompletion = true; | |
shellAliases = { | |
ls = "ls --color=auto"; | |
grep = "grep --color=auto"; | |
less = "bat"; | |
}; | |
}; | |
vim.defaultEditor = true; | |
}; | |
users.users.connelly = { | |
description = "Chris Connelly"; | |
createHome = true; | |
isNormalUser = true; | |
extraGroups = [ "wheel" "docker" "mlocate" ]; | |
uid = 1000; | |
}; | |
environment.systemPackages = | |
let | |
unstable = pkgs.callPackage (import (builtins.fetchTarball "https://github.com/nixos/nixpkgs/archive/nixos-unstable.tar.gz")) {}; | |
in | |
with pkgs; [ | |
vim | |
openssh | |
gitFull | |
wget | |
bat | |
screen | |
zip | |
unzip | |
snapraid | |
mergerfs | |
samba | |
ssmtp | |
rsync | |
restic | |
tcpdump | |
hexyl | |
pciutils | |
usbutils | |
colordiff | |
bind | |
ffmpeg | |
unstable.youtube-dl | |
sqlite | |
file | |
pv | |
]; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment