You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
2.0 KiB
62 lines
2.0 KiB
{
|
|
description = "pfke nix config";
|
|
|
|
inputs = {
|
|
# Go back to nixos-unstable after PR 238700 is merged
|
|
# https://nixpk.gs/pr-tracker.html?pr=238700
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small";
|
|
# You can access packages and modules from different nixpkgs revs
|
|
# at the same time. Here's an working example:
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
hardware.url = "github:nixos/nixos-hardware";
|
|
nix-colors.url = "github:misterio77/nix-colors";
|
|
|
|
# Home manager
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, ... }@inputs:
|
|
let
|
|
inherit (self) outputs;
|
|
lib = nixpkgs.lib // home-manager.lib;
|
|
systems = [ "aarch64-linux" "i686-linux" "x86_64-linux" ];
|
|
forEachSystem = f: lib.genAttrs systems (sys: f pkgsFor.${sys});
|
|
pkgsFor = nixpkgs.legacyPackages;
|
|
in
|
|
{
|
|
inherit lib;
|
|
nixosModules = import ./modules/nixos;
|
|
homeManagerModules = import ./modules/home-manager;
|
|
templates = import ./templates;
|
|
|
|
overlays = import ./overlays { inherit inputs outputs; };
|
|
hydraJobs = import ./hydra.nix { inherit inputs outputs; };
|
|
|
|
packages = forEachSystem (pkgs: import ./pkgs { inherit pkgs; });
|
|
devShells = forEachSystem (pkgs: import ./shell.nix { inherit pkgs; });
|
|
formatter = forEachSystem (pkgs: pkgs.nixpkgs-fmt);
|
|
|
|
wallpapers = import ./home/misterio/wallpapers;
|
|
|
|
nixosConfigurations = {
|
|
# Main desktop
|
|
atlas = lib.nixosSystem {
|
|
modules = [ ./hosts/atlas ];
|
|
specialArgs = { inherit inputs outputs; };
|
|
};
|
|
# ...
|
|
};
|
|
|
|
homeConfigurations = {
|
|
"hblobner@devvie" = lib.homeManagerConfiguration {
|
|
modules = [ "./users/hblober@devvie.nix" ];
|
|
pkgs = pkgsFor.x86_64-linux;
|
|
extraSpecialArgs = { inherit inputs outputs; };
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|