Browse Source

Update networking configuration

main
parent
commit
ee3639121e
Signed by: chris GPG Key ID: 3025DCBD46F81C0F
  1. 17
      README.org
  2. 12
      flake.nix
  3. 3
      hosts/acernitro/configuration.nix
  4. 3
      hosts/nixos/configuration.nix
  5. 3
      hosts/raspberry/configuration.nix

17
README.org

@ -351,15 +351,18 @@ networking.wireless.networks.MyWiFi_5C1870.pskRaw =
"409b3c85fef1c5737f284d2f82f20dc6023e41804e862d4fa26265ef8193b326";
#+END_SRC
It's helpful to add the machine hostnames to the networking configuration, so I can refer to another host across the network by name:
It's helpful to add the machine hostnames to the networking configuration, so I can refer to another host across the network by name. Some devices that can have more than one IP (WIFI / Ethernet) will have the wireless hostname suffixed:
#+NAME: host-config-home
#+BEGIN_SRC nix
networking.hosts = {
"192.168.3.105" = [ "gamingpc" ];
# "" = [ "acernitro" ];
# "" = [ "acernitro_" ];
"192.168.3.182" = [ "raspberry" ];
"192.168.3.123" = [ "raspberry_" ];
# "" = [ "homecloud" ];
# "" = [ "homecloud_" ];
# "" = [ "zero-one" ];
# "" = [ "zero-two" ];
# "" = [ "android" ];
@ -612,18 +615,6 @@ raspberry = nixpkgs.lib.nixosSystem {
<<module-flakes>>
<<module-cachix>>
<<module-home-manager>>
# inputs.home-manager.nixosModules.home-manager {
# home-manager.useGlobalPkgs = true;
# home-manager.useUserPackages = true;
# home-manager.users.chris = {
# imports = [
# <<module-git>>
# <<module-gpg>>
# <<module-vim>>
# <<module-gtk>>
# ];
# };
# }
];
};
#+END_SRC

12
flake.nix

@ -86,18 +86,6 @@
];
};
}
# inputs.home-manager.nixosModules.home-manager {
# home-manager.useGlobalPkgs = true;
# home-manager.useUserPackages = true;
# home-manager.users.chris = {
# imports = [
# ./modules/git.nix
# ./modules/gpg.nix
# ./modules/vim.nix
# ./modules/gtk.nix
# ];
# };
# }
];
};
homecloud = nixpkgs.lib.nixosSystem {

3
hosts/acernitro/configuration.nix

@ -17,8 +17,11 @@
networking.hosts = {
"192.168.3.105" = [ "gamingpc" ];
# "" = [ "acernitro" ];
# "" = [ "acernitro_" ];
"192.168.3.182" = [ "raspberry" ];
"192.168.3.123" = [ "raspberry_" ];
# "" = [ "homecloud" ];
# "" = [ "homecloud_" ];
# "" = [ "zero-one" ];
# "" = [ "zero-two" ];
# "" = [ "android" ];

3
hosts/nixos/configuration.nix

@ -12,8 +12,11 @@
networking.hosts = {
"192.168.3.105" = [ "gamingpc" ];
# "" = [ "acernitro" ];
# "" = [ "acernitro_" ];
"192.168.3.182" = [ "raspberry" ];
"192.168.3.123" = [ "raspberry_" ];
# "" = [ "homecloud" ];
# "" = [ "homecloud_" ];
# "" = [ "zero-one" ];
# "" = [ "zero-two" ];
# "" = [ "android" ];

3
hosts/raspberry/configuration.nix

@ -11,8 +11,11 @@
networking.hosts = {
"192.168.3.105" = [ "gamingpc" ];
# "" = [ "acernitro" ];
# "" = [ "acernitro_" ];
"192.168.3.182" = [ "raspberry" ];
"192.168.3.123" = [ "raspberry_" ];
# "" = [ "homecloud" ];
# "" = [ "homecloud_" ];
# "" = [ "zero-one" ];
# "" = [ "zero-two" ];
# "" = [ "android" ];

Loading…
Cancel
Save