hosts/sakotop: agenix test

This commit is contained in:
Sakooooo 2024-10-02 13:36:44 +04:00
parent fa4606962c
commit 865240b948
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -1,13 +1,6 @@
# Edit this configuration file to define what should be installed on # Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page and in the NixOS manual (accessible by running `nixos-help`). # your system. Help is available in the configuration.nix(5) man page and in the NixOS manual (accessible by running `nixos-help`).
{ { config, pkgs, lib, inputs, outputs, ... }: {
config,
pkgs,
lib,
inputs,
outputs,
...
}: {
imports = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
@ -75,9 +68,7 @@
mpv.enable = true; mpv.enable = true;
jellyfin.enable = true; jellyfin.enable = true;
}; };
security = { security = { wireshark.enable = true; };
wireshark.enable = true;
};
}; };
hardware = { hardware = {
nvidia = { nvidia = {
@ -141,24 +132,21 @@
sops.enable = true; sops.enable = true;
certs.enable = true; certs.enable = true;
}; };
virtualization = { virtualization = { waydroid.enable = true; };
waydroid.enable = true;
};
}; };
# Enable CUPS to print documents. # Enable CUPS to print documents.
# services.printing.enable = true; # services.printing.enable = true;
services.xserver.videoDrivers = ["nvidia"]; services.xserver.videoDrivers = [ "nvidia" ];
# homelab # homelab
sops = { sops = {
# we need to setup wireguard with this soon # we need to setup wireguard with this soon
age.sshKeyPaths = ["/home/sako/.ssh/id_ed25519"]; age.sshKeyPaths = [ "/home/sako/.ssh/id_ed25519" ];
}; };
networking.wireguard.interfaces = { networking.wireguard.interfaces = { };
};
services.logind.extraConfig = '' services.logind.extraConfig = ''
# dont shutdown when power button is short-pressed # dont shutdown when power button is short-pressed
@ -168,6 +156,8 @@
# set laptop dpi # set laptop dpi
services.xserver.dpi = 100; services.xserver.dpi = 100;
age.secrets.test.file = ../../secrets/test.age;
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
# services.openssh.enable = true; # services.openssh.enable = true;