You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
886 B
Nix

{
description = "Initial attempt to configure nix from a flake.";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { nixpkgs, home-manager, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = { allowUnfree = true; };
};
lib = nixpkgs.lib;
in {
homeManagerConfigurations = {
shnee = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
./users/shnee/home.nix
];
};
};
nixosConfigurations = {
# Here 'nixos' is the hostname.
nixos = lib.nixosSystem {
inherit system;
modules = [
./system/configuration.nix
];
};
};
};
}