nix/laptop/flake.nix

34 lines
734 B
Nix
Raw Normal View History

2023-06-30 11:41:45 +02:00
{
2023-06-30 12:17:13 +02:00
description = "Laptop System Config";
2023-06-30 11:46:47 +02:00
inputs = {
2023-06-30 12:17:13 +02:00
nixpkgs.url = "nixpkgs/nixos-23.05";
home-manager.url = "github:nix-community/home-manager/release-23.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2023-06-30 11:46:47 +02:00
};
2023-06-30 12:17:13 +02:00
outputs = { nixpkgs, home-manager, ... }:
let
system = "x86_64-linux";
hostname = "nixos-p1";
pkgs = import nixpkgs {
# Tells Flake what OS version we are using
inherit system;
config = { allowUnfree = true; };
};
lib = nixpkgs.lib;
in {
nixosConfigurations = {
nixos-p1 = lib.nixosSystem {
inherit system;
modules = [
./configuration.nix
/etc/nixos/hardware-configuration.nix
];
};
2023-06-30 11:41:45 +02:00
};
};
2023-06-30 12:17:13 +02:00
}