liminix

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

vanilla-configuration.nix (840B)


      1 { config, pkgs, ... }:
      2 let
      3   inherit (pkgs.liminix.services) target;
      4   svc = config.system.service;
      5 in
      6 rec {
      7   imports = [
      8     ./modules/wlan.nix
      9     ./modules/network
     10     ./modules/ntp
     11     ./modules/vlan
     12   ];
     13 
     14   services.dhcpv4 =
     15     let
     16       iface = svc.network.link.build { ifname = "eth1"; };
     17     in
     18     svc.network.dhcp.client.build { interface = iface; };
     19 
     20   services.defaultroute4 = svc.network.route.build {
     21     via = "$(output ${services.dhcpv4} ip)";
     22     target = "default";
     23     dependencies = [ services.dhcpv4 ];
     24   };
     25 
     26   services.packet_forwarding = svc.network.forward.build { };
     27 
     28   services.ntp = config.system.service.ntp.build {
     29     pools = {
     30       "pool.ntp.org" = [ "iburst" ];
     31     };
     32   };
     33 
     34   boot.tftp = {
     35     serverip = "192.168.8.148";
     36     ipaddr = "192.168.8.251";
     37   };
     38 
     39   defaultProfile.packages = [ pkgs.hello ];
     40 }