fork/home-manager
git clone https://git.julia.blue/fork/home-manager
2d963854
master
1{ config , lib , pkgs , ...} : 2 3with lib ; 4 5{ 6config = { 7programs . ssh = { 8enable = true ; 9matchBlocks = { 10abc = { port = 2222 ; }; 11 12xyz = { 13match = "host xyz canonical" ; 14port = 2223 ; 15}; 16 17"* !github.com" = { port = 516 ; }; 18}; 19}; 20 21home . file . assertions . text = builtins . toJSON 22( map ( a :a . message ) ( filter ( a :! a . assertion ) config . assertions )); 23 24nmt . script = '' 25assertFileExists home-files/.ssh/config 26assertFileContent \ 27home-files/.ssh/config \ 28${ ./match-blocks-match-and-hosts-expected.conf } 29assertFileContent home-files/assertions ${ ./no-assertions.json } 30'' ; 31}; 32}