mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-30 01:05:37 +00:00
32 lines
602 B
Nix
32 lines
602 B
Nix
|
{
|
||
|
description = "System Config";
|
||
|
|
||
|
inputs = {
|
||
|
nixpkgs.url = "nixpkgs/nixos-21.05";
|
||
|
home-manager.url = "github:nix-community/home-manager/release-21.05";
|
||
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||
|
};
|
||
|
|
||
|
outputs = { nixpkgs, home-manager, ... }: {
|
||
|
let
|
||
|
system = "x86_64-linux";
|
||
|
|
||
|
pkgs = import nixpkgs {
|
||
|
inherit system;
|
||
|
config = { allowUnfree = true; };
|
||
|
};
|
||
|
|
||
|
lib = nixpkgs.lib;
|
||
|
|
||
|
in {
|
||
|
nixosConfigurations = {
|
||
|
nixos = lib.nixosSystem {
|
||
|
inherit system;
|
||
|
modules = [
|
||
|
./configuration.nix
|
||
|
]
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|