Cleanup + minor Nix changes
This commit is contained in:
parent
36ece09bd2
commit
f517d30525
|
@ -11,8 +11,6 @@
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = ["virtio-pci"];
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# 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
|
# (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
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
./vcnotifier.nix
|
./vcnotifier.nix
|
||||||
# ./nodemusicbot.nix
|
|
||||||
./breeze.nix
|
./breeze.nix
|
||||||
./min-rip.nix
|
./min-rip.nix
|
||||||
./gitea.nix
|
./gitea.nix
|
||||||
|
|
|
@ -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];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,4 +1,4 @@
|
||||||
{pkgs, ...}: {
|
{inputs, pkgs, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
./hardening.nix
|
./hardening.nix
|
||||||
./limits.nix
|
./limits.nix
|
||||||
|
@ -25,9 +25,19 @@
|
||||||
nix = {
|
nix = {
|
||||||
# Make sure flakes are enabled
|
# Make sure flakes are enabled
|
||||||
settings.experimental-features = ["nix-command" "flakes"];
|
settings.experimental-features = ["nix-command" "flakes"];
|
||||||
|
extraOptions = ''
|
||||||
|
keep-outputs = true
|
||||||
|
keep-derivations = true
|
||||||
|
|
||||||
# Use our nixpkgs on legacy Nix tools.
|
flake-registry = ${builtins.toFile "flake-registry" (builtins.toJSON {
|
||||||
# This way I don't have to `nix-channel --update` to use `nix-shell`
|
version = 2;
|
||||||
nixPath = ["nixpath=${pkgs.path}"];
|
flakes = [];
|
||||||
|
})}
|
||||||
|
'';
|
||||||
|
nixPath = ["nixpkgs=${pkgs.path}"];
|
||||||
|
registry = {
|
||||||
|
self.flake = inputs.self;
|
||||||
|
nixpkgs.flake = inputs.nixpkgs;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue