Skip to content

Commit

Permalink
WIP: Move to networkmanager
Browse files Browse the repository at this point in the history
  • Loading branch information
tlater-famedly committed Feb 26, 2024
1 parent 9c0264b commit 861e4c5
Showing 1 changed file with 47 additions and 4 deletions.
51 changes: 47 additions & 4 deletions nixos-config/hosts/rin/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{lib, flake-inputs, ...}: {
{
pkgs,
config,
lib,
flake-inputs,
...
}: {
imports = [
flake-inputs.disko.nixosModules.disko

../../networks/personal.nix

./hardware-configuration.nix
./disko.nix

Expand All @@ -15,12 +19,51 @@
sops = {
gnupg = lib.mkForce {};
age.keyFile = "/var/lib/sops/host.age";
secrets.wireless-env = {};
};

networking = {
hostName = "rin";
hostId = "e6aaf496";
wireless.interfaces = ["wlp2s0"];
wireless = {
enable = lib.mkForce false;
allowAuxiliaryImperativeNetworks = lib.mkForce false;
userControlled.enable = lib.mkForce false;
};

networkmanager = {
enable = true;
dns = "systemd-resolved";

ensureProfiles = {
environmentFiles = [config.sops.secrets.wireless-env.path];

profiles = {
mikan = {
connection = {
id = "mikan";
type = "wifi";
};

wifi = {
mode = "infrastructure";
ssid = "mikan";
};

wifi-security = {
key-mgmt = "wpa-psk";
psk = "$PSK_MIKAN";
};

ipv4.method = "auto";
ipv6 = {
addr-gen-mode = "default";
method = "auto";
};
};
};
};
};
};

systemd.network = {
Expand Down

0 comments on commit 861e4c5

Please sign in to comment.