flake: use agenix

This commit is contained in:
LavaDesu 2021-09-20 15:09:44 +07:00
parent 4fbeaab7eb
commit eee9b5df5b
Signed by: cilly
GPG key ID: 6500251E087653C9
10 changed files with 81 additions and 19 deletions

View file

@ -1,7 +1,12 @@
{ config, modules, overlays, pkgs, ... }: {
networking.hostName = "winter";
system.stateVersion = "20.09";
time.timeZone = "Asia/Phnom_Penh";
age.secrets = {
passwd.file = ../../secrets/passwd.age;
wpa_conf.file = ../../secrets/wpa_conf.age;
};
imports = with modules.system; [
audio
base

View file

@ -1,4 +1,5 @@
{ config, ... }: {
environment.etc."wpa_supplicant.conf".source = config.age.secrets.wpa_conf.path;
networking = {
wireless = {
enable = true;