83 lines
2.2 KiB
Nix
83 lines
2.2 KiB
Nix
{
|
|
description = "My NixOS";
|
|
|
|
inputs = {
|
|
# Nix environs
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";
|
|
systems.url = "github:nix-systems/default-linux";
|
|
hardware.url = "github:nixos/nixos-hardware";
|
|
lanzaboote.url = "github:nix-community/lanzaboote/v0.4.1";
|
|
flake-utils = {
|
|
url = "github:numtide/flake-utils";
|
|
inputs.systems.follows = "systems";
|
|
};
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
#nix-gl = {
|
|
# url = "github:nix-community/nixgl";
|
|
# inputs.nixpkgs.follows = "nixpkgs";
|
|
#};
|
|
# anyrun.url = "github:anyrun-org/anyrun";
|
|
# Neovim Nightly
|
|
#neovim-nightly-overlay = {
|
|
# url = "github:nix-community/neovim-nightly-overlay";
|
|
# inputs.nixpkgs.follows = "nixpkgs";
|
|
#};
|
|
# Firefox Nightly
|
|
firefox-nightly = {
|
|
url = "github:nix-community/flake-firefox-nightly";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
#fenix = {
|
|
# url = "github:nix-community/fenix";
|
|
# inputs.nixpkgs.follows = "nixpkgs";
|
|
#};
|
|
ags.url = "github:Aylur/ags";
|
|
};
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
home-manager,
|
|
systems,
|
|
lanzaboote,
|
|
flake-utils,
|
|
...
|
|
} @ inputs: let
|
|
inherit (self) outputs;
|
|
lib = nixpkgs.lib // home-manager.lib;
|
|
forEachSystem = f: lib.genAttrs (import systems) (system: f pkgsFor.${system});
|
|
pkgsFor = lib.genAttrs (import systems) (
|
|
system:
|
|
import nixpkgs {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
}
|
|
);
|
|
in {
|
|
inherit lib;
|
|
devShells = forEachSystem (pkgs: import ./nixos/core/shells/dev.nix {inherit pkgs;});
|
|
formatter = forEachSystem (pkgs: pkgs.alejandra);
|
|
|
|
nixosConfigurations = {
|
|
cnix = lib.nixosSystem {
|
|
modules = [
|
|
./nixos/hosts/cnix
|
|
lanzaboote.nixosModules.lanzaboote
|
|
];
|
|
specialArgs = {
|
|
inherit inputs outputs;
|
|
};
|
|
};
|
|
adampad = lib.nixosSystem {
|
|
modules = [./nixos/hosts/adampad];
|
|
specialArgs = {
|
|
inherit inputs outputs;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|