diff options
Diffstat (limited to '')
| -rw-r--r-- | flake.nix | 119 |
1 files changed, 15 insertions, 104 deletions
@@ -1,115 +1,26 @@ { description = "NixOS server config"; - inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05-small"; - nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable-small"; + inputs = {}; - deploy-rs.url = "github:serokell/deploy-rs"; - - home-manager = { - url = "github:nix-community/home-manager/release-26.05"; - inputs = { - nixpkgs.follows = "nixpkgs"; - }; - }; - - library.url = "git+https://git.foss-syndicate.org/vhack.eu/nix-library?ref=prime"; - - treefmt-nix = { - url = "github:numtide/treefmt-nix"; - inputs = { - nixpkgs.follows = "nixpkgs"; - }; - }; - - # inputs for following - systems = { - url = "github:nix-systems/x86_64-linux"; # only evaluate for this system - }; - flake-compat = { - url = "github:edolstra/flake-compat"; - flake = false; - }; - crane = { - url = "github:ipetkov/crane"; - inputs = {}; - }; - flake-utils = { - url = "github:numtide/flake-utils"; - inputs = { - systems.follows = "systems"; - }; - }; - rust-overlay = { - url = "github:oxalica/rust-overlay"; - inputs = { - nixpkgs.follows = "nixpkgs"; - }; - }; + outputs = {self, ...} @ attrs: let + sources = import ./unflake.nix; + inherit (sources) nixpkgs; + inherit (sources) nixpkgs-unstable; + inherit (sources) library; + inherit (sources) treefmt-nix; + inherit (sources) deploy-rs; # modules - agenix = { - url = "github:ryantm/agenix"; - inputs = { - nixpkgs.follows = "nixpkgs"; - }; - }; - turtle = { - url = "git+https://git.foss-syndicate.org/bpeetz/forks/atuin?ref=main"; - inputs = { - crane.follows = "crane"; - nixpkgs.follows = "nixpkgs"; - }; - }; - disko = { - url = "github:nix-community/disko"; - inputs = { - nixpkgs.follows = "nixpkgs"; - }; - }; - impermanence = { - url = "github:nix-community/impermanence"; - inputs = { - nixpkgs.follows = "nixpkgs"; - home-manager.follows = "home-manager"; - }; - }; - rocie = { - url = "git+https://git.foss-syndicate.org/bpeetz/rocie/nix?ref=prime"; - inputs = { - nixpkgs.follows = "nixpkgs"; - treefmt-nix.follows = "treefmt-nix"; - crane.follows = "crane"; - rust-overlay.follows = "rust-overlay"; - }; - }; - simple-nixos-mailserver = { - url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-26.05"; - inputs = { - flake-compat.follows = "flake-compat"; - nixpkgs.follows = "nixpkgs-unstable"; - }; - }; - }; + inherit (sources) agenix; + inherit (sources) turtle; + inherit (sources) disko; + inherit (sources) impermanence; + inherit (sources) simple-nixos-mailserver; + inherit (sources) rocie; - outputs = { - self, - nixpkgs, - nixpkgs-unstable, - library, - treefmt-nix, - deploy-rs, - # modules - agenix, - turtle, - disko, - impermanence, - simple-nixos-mailserver, - rocie, - ... - } @ attrs: let system = "x86_64-linux"; + nixos-lib = import (nixpkgs + "/nixos/lib") {}; pkgs = nixpkgs.legacyPackages.${system}; pkgsUnstable = nixpkgs-unstable.legacyPackages.${system}; |
