desktop preparing

This commit is contained in:
bogale 2026-09-26 22:11:24 +09:00
commit 79d3f7e89d
7 changed files with 65 additions and 47 deletions

View file

@ -1,20 +1,30 @@
{ config, lib, pkgs, ... }:
{
imports = [ ../common.nix ./hardware-configuration.nix ];
networking = {
hostName = "nixos-desktop";
};
users.users = {
data = {
uid = 1256;
isNormalUser = true;
home = "/home/data";
hashedPasswordFile = "/secrets/user/data-pw";
};
bogale = {
uid = 1551;
isNormalUser = true;
home = "/home/bogale";
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.home-wifi = {
wifi.ssid = "bogale_5";
ipv6.addresses = "fc01::3/64";
ipv4.addresses = "10.1.0.3/16";
wifi-security.psk = "$BOGALE_5_PSK";
};
};
}