nixos-config/templates/sample-nixos-template/flake.nix

25 lines
650 B
Nix
Raw Normal View History

2023-05-24 10:54:07 +00:00
{
description = "Very simple sample of a Nix flake with NixOS and home-manager";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
};
2023-06-08 13:19:17 +00:00
outputs = { nixpkgs, home-manager, ... }:
let
system = "x85_64-linux";
in
{
nixosConfigurations.desktop = nixpkgs.lib.nixosSystem {
inherit system;
modules = [ ./hosts/desktop ];
};
2023-05-24 10:54:07 +00:00
2023-06-08 13:19:17 +00:00
homeConfigurations.foodogsquared = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs { inherit system; };
modules = [ ./users/foodogsquared ];
};
2023-05-24 10:54:07 +00:00
};
}