75 lines
No EOL
2.3 KiB
Nix
75 lines
No EOL
2.3 KiB
Nix
{
|
|
description = "My NixOS configuration";
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
|
#unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
#nix-snapd.url = "github:nix-community/nix-snapd";
|
|
#nix-snapd.inputs.nixpkgs.follows = "nixpkgs";
|
|
systems.url = "github:nix-systems/default-linux";
|
|
#autofirma-nix = {
|
|
# url = "github:nix-community/autofirma-nix/release-25.05";
|
|
# inputs.nixpkgs.follows = "nixpkgs";
|
|
#};
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-25.05";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
nixConfig = {
|
|
extra-substituters = [
|
|
"https://nix-community.cachix.org"
|
|
];
|
|
como cuando experimenta extra-trusted-public-keys = [
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
];
|
|
};
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
systems,
|
|
home-manager,
|
|
} @ 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;
|
|
|
|
#nixosModules = import ./modules/nixos;
|
|
#homeManagerModules = import ./modules/home-manager;
|
|
#overlays = import ./overlays {inherit inputs;};
|
|
|
|
packages = forEachSystem (pkgs: import ./pkgs {inherit pkgs;});
|
|
|
|
# NixOS configuration entrypoint
|
|
# Available through 'nixos-rebuild --flake .#your-hostname'
|
|
nixosConfigurations = {
|
|
limgrave = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {inherit inputs;};
|
|
modules = [
|
|
./hosts/limgrave/nixos
|
|
];
|
|
};
|
|
};
|
|
|
|
# Standalone home-manager configuration entrypoint
|
|
# Available through 'home-manager --flake .#your-username@your-hostname'
|
|
homeConfigurations = {
|
|
"catalin@limgrave" = home-manager.lib.homeManagerConfiguration {
|
|
# Home-manager requires 'pkgs' instance
|
|
pkgs = pkgsFor.x86_64-linux;
|
|
extraSpecialArgs = {inherit inputs;};
|
|
modules = [
|
|
./hosts/limgrave/home
|
|
];
|
|
};
|
|
};
|
|
};
|
|
} |