Move overlays to flake definition

This commit is contained in:
coolneng 2023-09-03 01:39:26 +02:00
parent 0b31ff0edf
commit ee5fb41f14
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
6 changed files with 18 additions and 38 deletions

View File

@ -69,12 +69,6 @@ with pkgs;
# Keep logs for a week # Keep logs for a week
services.journald.extraConfig = "MaxRetentionSec=1week"; services.journald.extraConfig = "MaxRetentionSec=1week";
# Allow propietary software and build packages with Pulseaudio support
nixpkgs.config = {
allowUnfree = true;
pulseaudio = true;
};
# Scrub zpool monthly # Scrub zpool monthly
services.zfs.autoScrub = { services.zfs.autoScrub = {
enable = true; enable = true;
@ -177,9 +171,6 @@ with pkgs;
./modules/periodic.nix ./modules/periodic.nix
./modules/power.nix ./modules/power.nix
./modules/monitoring.nix ./modules/monitoring.nix
./overlays/nix-direnv.nix
./overlays/openconnect-sso.nix
./overlays/emacs-vterm.nix
]; ];
} }

View File

@ -17,7 +17,7 @@
}; };
openconnect-sso = { openconnect-sso = {
url = "github:vlaci/openconnect-sso"; url = "github:vlaci/openconnect-sso";
flake = false; inputs.nixpkgs.follows = "nixpkgs";
}; };
cyrus-sasl-xoauth2 = { cyrus-sasl-xoauth2 = {
url = "github:robn/sasl2-oauth"; url = "github:robn/sasl2-oauth";
@ -37,7 +37,18 @@
let let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import pkgs { inherit system; }; pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [
inputs.openconnect-sso.overlay
(final: prev: {
emacs-vterm =
((pkgs.emacsPackagesFor pkgs.emacs29-pgtk).emacsWithPackages
(epkgs: with epkgs; [ vterm ]));
})
];
};
lib = nixpkgs.lib; lib = nixpkgs.lib;
@ -49,7 +60,10 @@
agenix.nixosModules.age agenix.nixosModules.age
nix-index-database.nixosModules.nix-index nix-index-database.nixosModules.nix-index
]; ];
specialArgs = { inherit inputs; }; specialArgs = {
inherit inputs;
inherit pkgs;
};
}; };
}; };

View File

@ -3,6 +3,7 @@
{ {
# Improve nix-shell and direnv integration # Improve nix-shell and direnv integration
environment.pathsToLink = [ "/share/nix-direnv" ]; environment.pathsToLink = [ "/share/nix-direnv" ];
programs.direnv.enable = true;
# Set up podman # Set up podman
virtualisation = { virtualisation = {

View File

@ -1,12 +0,0 @@
{ config, lib, pkgs, ... }:
with pkgs;
{
nixpkgs.overlays = [
(final: prev: {
emacs-vterm = ((emacsPackagesFor emacs29-pgtk).emacsWithPackages
(epkgs: with epkgs; [ vterm ]));
})
];
}

View File

@ -1,11 +0,0 @@
{ config, lib, pkgs, ... }:
with pkgs;
{
nixpkgs.overlays = [
(self: super: {
nix-direnv = super.nix-direnv.override { enableFlakes = true; };
})
];
}

View File

@ -1,3 +0,0 @@
{ config, lib, pkgs, inputs, ... }: {
nixpkgs.overlays = [ (import "${inputs.openconnect-sso}/overlay.nix") ];
}