fork/home-manager
git clone https://git.julia.blue/fork/home-manager
970b57fd
master
1{ config , pkgs , ...} : 2 3{ 4config = { 5programs . autorandr = { 6enable = true ; 7profiles = { 8default = { 9fingerprint = { 10DP1 = "XXX" ; 11DP2 = "YYY" ; 12}; 13config = { 14DP1 . enable = false ; 15DP2 = { 16crtc = 0 ; 17primary = true ; 18position = "0x0" ; 19mode = "1920x1080" ; 20filter = "nearest" ; 21transform = [ 22[ 0.6 0.0 0.0 ] # a b c 23[ 0.0 0.6 0.0 ] # d e f 24[ 0.0 0.0 1.0 ] # g h i 25]; 26}; 27}; 28}; 29}; 30}; 31 32test . stubs . autorandr = { }; 33 34nmt . script = '' 35config =home-files/.config/autorandr/default/config 36setup =home-files/.config/autorandr/default/setup 37 38assertFileExists $ setup 39assertFileRegex $ setup 'DP1 XXX' 40assertFileRegex $ setup 'DP2 YYY' 41 42assertFileExists $ config 43assertFileContent $ config \ 44${ 45pkgs . writeText "basic-configuration.conf" '' 46output DP1 47off 48 49output DP2 50pos 0x0 51crtc 0 52primary 53mode 1920x1080 54filter nearest 55transform 0.600000,0.000000,0.000000,0.000000,0.600000,0.000000,0.000000,0.000000,1.000000'' 56} 57'' ; 58}; 59}