fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Robert Helgessontests: various minor cleanupseec22729

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