diff options
| author | Joe Mou <dev@mou.fo> | 2023-09-22 16:41:54 -0400 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2023-09-27 15:06:26 -0400 |
| commit | a2236e67087c02d0e71074d2e2c6b9fb6c66b543 (patch) | |
| tree | 0ff6b86465dfa256a165651dcbf4a014cf5e23d5 /hostnix/weebnix | |
| parent | a3895623696b495433d1338969fd19853892f35b (diff) | |
Basic loose ends
Diffstat (limited to 'hostnix/weebnix')
| -rw-r--r-- | hostnix/weebnix/configuration.nix | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/hostnix/weebnix/configuration.nix b/hostnix/weebnix/configuration.nix index d32c577..067fd38 100644 --- a/hostnix/weebnix/configuration.nix +++ b/hostnix/weebnix/configuration.nix @@ -10,6 +10,8 @@ ./hardware-configuration.nix ]; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + # https://github.com/NixOS/nixpkgs/issues/122130#issuecomment-1568815007 boot.initrd.availableKernelModules = [ "uas" "pcie-brcmstb" "reset-raspberrypi" ]; @@ -17,17 +19,15 @@ # Raspberry Pi has no NVRAM. boot.loader.efi.canTouchEfiVariables = false; - # networking.hostName = "nixos"; # Define your hostname. - # Pick only one of the below networking options. - # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. - # networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. - - # Set your time zone. - # time.timeZone = "Europe/Amsterdam"; + networking.hostName = "weebnix"; + networking.domain = "mou.fo"; + # TODO secrets management or switch to wired + networking.wireless = { + enable = true; + networks."oldschool".psk = builtins.readFile /var/lib/secrets/oldschool.wpa-psk; + }; - # Configure network proxy if necessary - # networking.proxy.default = "http://user:password@proxy:port/"; - # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; + time.timeZone = "America/New_York"; # Select internationalisation properties. # i18n.defaultLocale = "en_US.UTF-8"; @@ -71,11 +71,10 @@ # ]; }; - # List packages installed in system profile. To search, run: - # $ nix search wget environment.systemPackages = with pkgs; [ + libraspberrypi + tmux vim - # wget ]; # Some programs need SUID wrappers, can be configured further or are @@ -86,9 +85,11 @@ # enableSSHSupport = true; # }; - # List services that you want to enable: + services.avahi = { + enable = true; + nssmdns = true; + }; - # Enable the OpenSSH daemon. services.openssh.enable = true; # Open ports in the firewall. |
