nixos-config/flake.nix

64 lines
1.2 KiB
Nix
Raw Normal View History

2023-10-08 11:42:08 +02:00
{
description = "Materus hosts and user config";
inputs = {
nixpkgs = {
type = "github";
owner = "NixOS";
repo = "nixpkgs";
ref = "nixos-unstable";
};
2023-10-08 16:13:36 +02:00
home-manager = {
2023-10-08 11:42:08 +02:00
type = "github";
2023-10-08 16:13:36 +02:00
owner = "nix-community";
repo = "home-manager";
ref = "master";
inputs = {
nixpkgs.follows = "nixpkgs";
};
2023-10-08 11:42:08 +02:00
};
2023-10-08 16:13:36 +02:00
emacs-overlay = {
type = "github";
owner = "nix-community";
repo = "emacs-overlay";
ref = "master";
2023-10-08 11:42:08 +02:00
inputs = {
nixpkgs.follows = "nixpkgs";
};
};
2023-10-08 16:17:46 +02:00
nixerus = {
type = "github";
owner = "materusPL";
repo = "Nixerus";
ref = "master";
inputs = {
nixpkgs.follows = "nixpkgs";
home-manager.follows = "home-manager";
};
};
2023-10-08 16:13:36 +02:00
nur = {
type = "github";
owner = "nix-community";
repo = "NUR";
ref = "master";
};
2023-10-08 11:42:08 +02:00
};
outputs = inputs @ { self, nixpkgs, home-manager, nur, ... }:
let
systems = [
"x86_64-linux"
"i686-linux"
"aarch64-linux"
];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
in
rec {
2023-10-08 16:13:36 +02:00
inherit inputs;
2023-10-08 11:42:08 +02:00
};
}