linuxware/flake.nix

37 lines
953 B
Nix
Raw Normal View History

2023-11-05 04:53:31 -03:00
{
description = "NixOS System Flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2023-11-05 04:53:31 -03:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, home-manager, nixpkgs, ... }@inputs:
let system = "x86_64-linux";
in {
2024-04-11 20:02:59 -03:00
nixosConfigurations."nixos" =
let
specialArgs = inputs;
modules = [
./nixos.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = inputs;
home-manager.users.wizardlink = import ./home-manager.nix;
}
];
in
nixpkgs.lib.nixosSystem { inherit system specialArgs modules; };
formatter."${system}" = nixpkgs.legacyPackages.${system}.nixpkgs-fmt;
};
2023-11-05 04:53:31 -03:00
}