liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

fixture.nix (955B)


      1 {
      2   pseudofile
      3 }: let
      4   inherit (pseudofile) dir;
      5   structure = {
      6     service = dir {
      7       s6-linux-init-runleveld = dir {
      8         notification-fd = { file = "3"; };
      9         run = {
     10           file = ''
     11            hello
     12            world
     13           '';
     14           mode = "0755";
     15         };
     16       };
     17       s6-linux-init-shutdownd = dir {
     18         fifo = {
     19           type = "i";
     20           mode = "0600";
     21         };
     22         run = {
     23           file = ''
     24               s6-linux-init/bin/s6-linux-init-shutdownd -c  "/etc/s6-linux-init/current" -g 3000
     25             '';
     26           mode = "0755";
     27         };
     28 
     29       };
     30       s6-svscan-log = dir {
     31         fifo = {
     32           type = "i";
     33           mode = "0600";
     34         };
     35         notification-fd = { file = "3"; };
     36         run = {
     37           file = ''
     38               gdsgdfgsdgf
     39           '';
     40         };
     41       };
     42     };
     43     uncaught-logs = (dir {}) // {mode = "2750";};
     44   };
     45 in pseudofile.write "pseudo.s6-init" structure