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

24 lines
654 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, ... }:
2025-01-29 04:48:19 +00:00
let system = "x85_64-linux";
in {
2023-06-08 13:19:17 +00:00
nixosConfigurations.desktop = nixpkgs.lib.nixosSystem {
inherit system;
modules = [ ./hosts/desktop ];
};
2023-05-24 10:54:07 +00:00
2025-01-29 04:48:19 +00:00
homeConfigurations.foodogsquared =
home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs { inherit system; };
modules = [ ./users/foodogsquared ];
};
2023-05-24 10:54:07 +00:00
};
}