{ description = "my krops file"; inputs = { flake-utils.url = "github:numtide/flake-utils"; nixpkgs.url = "github:nixos/nixpkgs/nixos-21.05"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; nix-doom-emacs = { url = "github:vlaci/nix-doom-emacs"; inputs.nixpkgs.follows = "nixpkgs"; }; home-manager = { url = "github:nix-community/home-manager/release-21.05"; inputs.nixpkgs.follows = "nixpkgs"; }; krops = { url = "github:Mic92/krops"; #url = "file:/home/palo/dev/krops-mic92-fork"; inputs.flake-utils.follows = "flake-utils"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = { self, nixpkgs, home-manager, krops, flake-utils, nix-doom-emacs , nixpkgs-unstable, ... }: (flake-utils.lib.eachSystem [ "x86_64-linux" ] (system: let pkgs = nixpkgs.legacyPackages.${system}; writeCommand = krops.packages.${system}.writeCommand; in { # deploy like this: # nix run ".#deploy.sterni" apps.deploy = pkgs.callPackage ./krops.nix { inherit writeCommand; lib = krops.lib; }; })) // { nixosConfigurations = import ./configurations.nix { nixosSystem = nixpkgs.lib.nixosSystem; inherit home-manager nixpkgs-unstable; }; }; }