Files
nixos-config/flake.nix
T

67 lines
1.5 KiB
Nix

{
description = "someone flake configuration based on hjem";
outputs = inputs:
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
systems = ["x86_64-linux"];
imports = [./hosts ./pkgs];
perSystem = {
config,
pkgs,
...
}: {
devShells = {
default = pkgs.mkShell {
packages = [pkgs.alejandra pkgs.git config.packages.repl];
name = "someone";
DIRENV_LOG_FORMAT = "";
};
};
# Nix Formatter
formatter = pkgs.alejandra;
};
};
inputs = {
# global, so they can be `.follow`ed
systems.url = "github:nix-systems/default-linux";
flake-compat.url = "github:edolstra/flake-compat";
flake-utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
# rest of inputs, alphabetical order
agenix = {
url = "github:ryantm/agenix";
inputs = {
nixpkgs.follows = "nixpkgs";
systems.follows = "systems";
};
};
import-tree.url = "github:vic/import-tree";
mynixpkgs.url = "github:linuxmobile/mynixpkgs";
zen-browser = {
url = "github:youwen5/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-db = {
url = "github:Mic92/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}