fork/home-manager
git clone https://git.julia.blue/fork/home-manager
eec22729
master
1{ ...} : 2 3{ 4systemd . user . slices . app-test = { 5Unit = { Description = "Slice for a test app" ; }; 6 7Slice = { 8MemoryHigh = "30%" ; 9MemoryMax = "40%" ; 10}; 11}; 12 13nmt . script = '' 14sliceFile =home-files/.config/systemd/user/app-test.slice 15assertFileExists $ sliceFile 16assertFileContent $ sliceFile ${ 17builtins . toFile "app-test-expected.conf" '' 18[Slice] 19MemoryHigh=30% 20MemoryMax=40% 21 22[Unit] 23Description=Slice for a test app 24'' 25} 26'' ; 27}