51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{
|
|
description = "A very basic flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs"; # `follows` ensure it follows nixpkgs version
|
|
|
|
ags.url = "github:aylur/ags";
|
|
ags.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
monolisa.url = "github:mykhalskyio/monolisa-flake";
|
|
monolisa.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
home-manager,
|
|
...
|
|
} @ inputs: let
|
|
info = import ./info.nix;
|
|
lib = nixpkgs.lib;
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
args = {
|
|
inherit inputs system;
|
|
} // info;
|
|
in {
|
|
nixosConfigurations = {
|
|
biscuit = lib.nixosSystem {
|
|
specialArgs = args;
|
|
inherit system;
|
|
modules = [
|
|
./nixos/biscuit/configuration.nix
|
|
];
|
|
};
|
|
};
|
|
homeConfigurations = {
|
|
biscuit = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [];
|
|
};
|
|
extraSpecialArgs = args;
|
|
modules = [./dotfiles/biscuit/home.nix];
|
|
};
|
|
};
|
|
};
|
|
}
|