mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
networking: add basic /etc files for networking
This commit is contained in:
parent
0dec5d4c97
commit
cfcb4acf16
2 changed files with 37 additions and 0 deletions
36
modules/environment/networking.nix
Normal file
36
modules/environment/networking.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# Copyright (c) 2019-2021, see AUTHORS. Licensed under MIT License, see LICENSE.
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
|
||||
###### interface
|
||||
|
||||
options = {
|
||||
|
||||
};
|
||||
|
||||
|
||||
###### implementation
|
||||
|
||||
config = {
|
||||
|
||||
environment.etc = {
|
||||
# /etc/services: TCP/UDP port assignments.
|
||||
services.source = pkgs.iana-etc + "/etc/services";
|
||||
|
||||
# /etc/protocols: IP protocol numbers.
|
||||
protocols.source = pkgs.iana-etc + "/etc/protocols";
|
||||
|
||||
# /etc/hosts: Hostname-to-IP mappings.
|
||||
hosts.text = ''
|
||||
127.0.0.1 localhost
|
||||
::1 localhost
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -9,6 +9,7 @@
|
|||
./environment/files.nix
|
||||
./environment/links.nix
|
||||
./environment/login
|
||||
./environment/networking.nix
|
||||
./environment/path.nix
|
||||
./environment/session-init.nix
|
||||
./home-manager.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue