nixos/desktop/configuration.nix
2026-10-03 00:18:13 +09:00

30 lines
778 B
Nix

{ config, lib, pkgs, ... }:
{
imports = [ ../common.nix ./hardware-configuration.nix ];
users.users = {
data = {
uid = 1256;
isNormalUser = true;
hashedPasswordFile = "/secrets/user/data-pw";
};
bogale = {
uid = 1551;
isNormalUser = true;
extraGroups = [ "wheel" ];
hashedPasswordFile = "/secrets/user/bogale-pw";
};
};
networking = {
hostName = "nixos-desktop";
wg-quick.interfaces.awg0 = {
configFile = "/secrets/awg/2.conf";
address = [ "fc00::3/128" "10.0.0.3/32" ];
};
networkmanager.ensureProfiles.profiles.wifi = {
wifi.ssid = "bogale_5";
ipv6.addresses = "fc01::3/64";
ipv4.addresses = "10.1.0.3/16";
wifi-security.psk = "$BOGALE_5_PSK";
};
};
}