mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 00:57:22 +01:00
feat: use nixos-extra-modules
This commit is contained in:
parent
7ef0ebf5e7
commit
0caef3e587
19 changed files with 3397 additions and 1802 deletions
|
|
@ -1,5 +1,17 @@
|
|||
{ self, ... }:
|
||||
{ self, inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
(
|
||||
{ lib, flake-parts-lib, ... }:
|
||||
flake-parts-lib.mkTransposedPerSystemModule {
|
||||
name = "pkgs";
|
||||
file = ./packages.nix;
|
||||
option = lib.mkOption {
|
||||
type = lib.types.unspecified;
|
||||
};
|
||||
}
|
||||
)
|
||||
];
|
||||
flake = _:
|
||||
let
|
||||
inherit (self.outputs) lib;
|
||||
|
|
@ -7,4 +19,17 @@
|
|||
{
|
||||
packages = lib.swarselsystems.forEachLinuxSystem (pkgs: import "${self}/pkgs" { inherit self lib pkgs; });
|
||||
};
|
||||
|
||||
perSystem = { pkgs, system, ... }:
|
||||
{
|
||||
# see https://flake.parts/module-arguments.html?highlight=modulewith#persystem-module-parameters
|
||||
_module.args.pkgs = import inputs.nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
overlays = [
|
||||
self.overlays.default
|
||||
];
|
||||
};
|
||||
inherit pkgs;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue