sops nix configured
This commit is contained in:
parent
3d0bd56fe8
commit
db022df80b
9 changed files with 143 additions and 27 deletions
|
|
@ -1,32 +1,48 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
hardware.bluetooth.enable = true;
|
||||
environment.systemPackages = [ pkgs.qemu ];
|
||||
imports = [ ../common.nix ./hardware.nix ];
|
||||
boot.kernelParams = [ "hibernate.compressor=lz4" ];
|
||||
environment.systemPackages = with pkgs; [ qemu binwalk android-tools ];
|
||||
programs = {
|
||||
niri.enable = true;
|
||||
virt-manager.enable = true;
|
||||
};
|
||||
hardware = {
|
||||
bluetooth.enable = true;
|
||||
graphics.enable32Bit = true;
|
||||
};
|
||||
users.users.bogale = {
|
||||
uid = 1551;
|
||||
isNormalUser = true;
|
||||
hashedPasswordFile = "/secrets/user/bogale-pw";
|
||||
extraGroups = [ "wheel" "libvirtd" "networkmanager" ];
|
||||
users.users.root.hashedPasswordFile = sops.secrets.bogale-passwd.path;
|
||||
};
|
||||
virtualisation.libvirtd = {
|
||||
enable = true;
|
||||
qemu = {
|
||||
swtpm.enable = true;
|
||||
vhostUserPackages = [ pkgs.virtiofsd ];
|
||||
sops = {
|
||||
secrets = {
|
||||
awg2-spec = {};
|
||||
bogale-passwd = {};
|
||||
};
|
||||
templates.awg2-conf.content = ''
|
||||
${config.sops.placeholder.awg-obf}
|
||||
${config.sops.placeholder.awg2-spec}
|
||||
'';
|
||||
};
|
||||
virtualisation = {
|
||||
spiceUSBRedirection.enable = true;
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
qemu = {
|
||||
swtpm.enable = true;
|
||||
vhostUserPackages = [ pkgs.virtiofsd ];
|
||||
};
|
||||
};
|
||||
};
|
||||
networking = {
|
||||
hostName = "nixos-desktop";
|
||||
firewall.allowedTCPPorts = [ 8000 ];
|
||||
wg-quick.interfaces.awg0 = {
|
||||
configFile = "/secrets/awg/2.conf";
|
||||
address = [ "10.0.0.3/32" "fc00::3/128" ];
|
||||
configFile = config.sops.templates.awg2-conf.path;
|
||||
};
|
||||
networkmanager.ensureProfiles.profiles = {
|
||||
dhcp-eth.connection = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue