mirror of
https://github.com/zhaofengli/attic.git
synced 2024-12-14 11:57:30 +00:00
Migrate NixOS modules to flake-parts
This commit is contained in:
parent
8dc0bdbf7f
commit
3ecea8d07f
2 changed files with 16 additions and 13 deletions
13
flake.nix
13
flake.nix
|
@ -87,19 +87,6 @@
|
|||
stableTests = lib.mapAttrs' (name: lib.nameValuePair "stable-${name}") (makeIntegrationTests pkgsStable);
|
||||
in lib.optionalAttrs pkgs.stdenv.isLinux (unstableTests // stableTests);
|
||||
}) // {
|
||||
nixosModules = {
|
||||
atticd = {
|
||||
imports = [
|
||||
./nixos/atticd.nix
|
||||
];
|
||||
|
||||
services.atticd.useFlakeCompatOverlay = false;
|
||||
|
||||
nixpkgs.overlays = [
|
||||
self.overlays.default
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
16
flake/nixos.nix
Normal file
16
flake/nixos.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
flake.nixosModules = {
|
||||
atticd = {
|
||||
imports = [
|
||||
../nixos/atticd.nix
|
||||
];
|
||||
|
||||
services.atticd.useFlakeCompatOverlay = false;
|
||||
|
||||
nixpkgs.overlays = [
|
||||
config.flake.overlays.default
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue