a bit of nix config

This commit is contained in:
Noah Masur
2021-08-09 08:19:21 -04:00
parent f493b263e0
commit 634e8cabac
6 changed files with 633 additions and 0 deletions

31
nixos/flakes/flake.nix Normal file
View File

@ -0,0 +1,31 @@
{
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
]
};
};
};
}