Cleanup + minor Nix changes
This commit is contained in:
parent
36ece09bd2
commit
f517d30525
|
@ -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
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./vcnotifier.nix
|
||||
# ./nodemusicbot.nix
|
||||
./breeze.nix
|
||||
./min-rip.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 = [
|
||||
./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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue