{ 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 ]; }; }; }; }