initialization

This commit is contained in:
biscuit
2025-05-19 17:53:19 -05:00
commit c1e4ef47f3
30 changed files with 451 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
{
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
};
outputs = {
self,
nixpkgs,
home-manager,
...
} @ inputs: let
lib = nixpkgs.lib;
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
nixosConfigurations = {
biscuit = lib.nixosSystem {
specialArgs = {inherit inputs system;};
inherit system;
modules = [
./nixos/biscuit/configuration.nix
];
};
};
homeConfigurations = {
biscuit = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {
inherit system;
overlays = [];
};
extraSpecialArgs = {inherit inputs system;};
modules = [./dotfiles/biscuit/home.nix];
};
};
};
}