38 lines
852 B
Nix
38 lines
852 B
Nix
{
|
|
description = "A flake using my config";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
home-manager.url = "github:nix-community/home-manager/release-22.11";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = { nixpkgs, home-manager, ... }:
|
|
let
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
};
|
|
|
|
lib = nixpkgs.lib;
|
|
in {
|
|
|
|
nixosConfigurations = {
|
|
zenix = lib.nixosSystem {
|
|
inherit system;
|
|
|
|
modules = [
|
|
./system/configuration.nix
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.tristan = {
|
|
imports = [ ./users/tristan/home.nix ];
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|