liminix

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

fixture.nix (1001B)


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