First flake

This commit is contained in:
Filippo Berto 2022-04-06 09:44:31 +02:00
parent c3b30c56ef
commit becab7b6f3
4 changed files with 341 additions and 0 deletions

35
thor/flake.nix Normal file
View file

@ -0,0 +1,35 @@
{
description = "Thor system configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager/release-21.11";
nixos-hardware.url = "github:NixOS/nixos-hardware";
# nixos-hardware.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, home-manager, nixos-hardware }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = { allowUnfree = true; };
};
lib = nixpkgs.lib;
in
{
nixosConfigurations = {
thor = lib.nixosSystem {
inherit system;
modules = [
nixos-hardware.nixosModules.common-cpu-amd
nixos-hardware.nixosModules.common-pc-ssd
./configuration.nix
];
};
};
};
}