fork/home-manager
git clone https://git.julia.blue/fork/home-manager
76dd6c66
master
1{ config , lib , ...} : 2 3{ 4wayland . windowManager . hyprland = { 5enable = true ; 6package = lib . makeOverridable 7( attrs :config . lib . test . mkStubPackage { name = "hyprland" ; }) { }; 8plugins = 9[ "/path/to/plugin1" ( config . lib . test . mkStubPackage { name = "foo" ; }) ]; 10settings = { 11decoration = { 12shadow_offset = "0 5" ; 13"col.shadow" = "rgba(00000099)" ; 14}; 15 16"$mod" = "SUPER" ; 17 18animations = { 19enabled = true ; 20animation = [ 21"border, 1, 2, smoothIn" 22"fade, 1, 4, smoothOut" 23"windows, 1, 3, overshot, popin 80%" 24]; 25}; 26 27bezier = [ 28"smoothOut, 0.36, 0, 0.66, -0.56" 29"smoothIn, 0.25, 1, 0.5, 1" 30"overshot, 0.4,0.8,0.2,1.2" 31]; 32 33input = { 34kb_layout = "ro" ; 35follow_mouse = 1 ; 36accel_profile = "flat" ; 37touchpad = { scroll_factor = 0.3 ; }; 38}; 39 40bindm = [ 41# mouse movements 42"$mod, mouse:272, movewindow" 43"$mod, mouse:273, resizewindow" 44"$mod ALT, mouse:272, resizewindow" 45]; 46}; 47extraConfig = '' 48# window resize 49bind = $mod, S, submap, resize 50 51submap = resize 52binde = , right, resizeactive, 10 0 53binde = , left, resizeactive, -10 0 54binde = , up, resizeactive, 0 -10 55binde = , down, resizeactive, 0 10 56bind = , escape, submap, reset 57submap = reset 58'' ; 59}; 60 61nmt . script = '' 62config =home-files/.config/hypr/hyprland.conf 63assertFileExists " $ config " 64 65normalizedConfig = $( normalizeStorePaths " $ config " ) 66assertFileContent " $ normalizedConfig " ${ ./simple-config.conf } 67'' ; 68}