Add flake.nix
This commit is contained in:
commit
2f64183c6c
1 changed files with 25 additions and 0 deletions
25
flake.nix
Normal file
25
flake.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
{
|
||||||
|
description = "My Shit Ass Nix Build";
|
||||||
|
|
||||||
|
outputs = inputs @ {
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
...
|
||||||
|
}: rec {
|
||||||
|
# The output for your laptop build
|
||||||
|
nixosConfigurations = {
|
||||||
|
laptop = nixpkgs.lib.nixosSystem {
|
||||||
|
specialArgs = {inherit self inputs;};
|
||||||
|
modules = [
|
||||||
|
./hosts/laptop #individual config
|
||||||
|
./modules/nixos #share configs
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Flake inputs, think of it as external repos
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue