Cleanup + minor Nix changes

This commit is contained in:
minish 2024-11-29 02:23:31 -05:00
parent 36ece09bd2
commit f517d30525
Signed by: min
SSH Key Fingerprint: SHA256:NFjjdbkd6u7aoMlcrDCVvz6o2UBtlAuPm8IQ2vhZ3Fg
4 changed files with 14 additions and 16 deletions

View File

@ -11,8 +11,6 @@
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = ["virtio-pci"];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction

View File

@ -1,7 +1,6 @@
{pkgs, ...}: {
imports = [
./vcnotifier.nix
# ./nodemusicbot.nix
./breeze.nix
./min-rip.nix
./gitea.nix

View File

@ -1,9 +0,0 @@
{config, ...}: {
sops.secrets."svc-nodemusicbot-env" = {};
virtualisation.oci-containers.containers.nodemusicbot = {
image = "git.min.rip/min/nodemusicbot:latest";
extraOptions = ["--rm"];
environmentFiles = [config.sops.secrets."svc-nodemusicbot-env".path];
};
}

View File

@ -1,4 +1,4 @@
{pkgs, ...}: {
{inputs, pkgs, ...}: {
imports = [
./hardening.nix
./limits.nix
@ -25,9 +25,19 @@
nix = {
# Make sure flakes are enabled
settings.experimental-features = ["nix-command" "flakes"];
extraOptions = ''
keep-outputs = true
keep-derivations = true
# Use our nixpkgs on legacy Nix tools.
# This way I don't have to `nix-channel --update` to use `nix-shell`
nixPath = ["nixpath=${pkgs.path}"];
flake-registry = ${builtins.toFile "flake-registry" (builtins.toJSON {
version = 2;
flakes = [];
})}
'';
nixPath = ["nixpkgs=${pkgs.path}"];
registry = {
self.flake = inputs.self;
nixpkgs.flake = inputs.nixpkgs;
};
};
}