initial commit

This commit is contained in:
2022-10-04 14:08:04 +02:00
commit 0636c61438
5 changed files with 109 additions and 0 deletions

24
outputs.nix Normal file
View File

@@ -0,0 +1,24 @@
{ self
, utils
, nixpkgs
, nixpkgs-unstable
, sops-nix
, ...
} @inputs:
# filter i686-liux from defaultSystem to run nix flake check successfully
let filter_system = name: if name == utils.lib.system.i686-linux then false else true;
in (utils.lib.eachSystem (builtins.filter filter_system utils.lib.defaultSystems) ( system:
let
pkgs-unstable = nixpkgs-unstable.legacyPackages."${system}";
pkgs = nixpkgs.legacyPackages."${system}";
in
{
devShells.default = pkgs.callPackage ./shell.nix {
inherit (sops-nix.packages."${pkgs.system}") sops-import-keys-hook ssh-to-pgp sops-init-gpg-key;
};
})) // {
nixosConfigurations = import ./machines/configuration.nix (inputs // {
inherit inputs;
});
}