fork/home-manager

git clone https://git.julia.blue/fork/home-manager

MaxCan-Codeflake: add templates (#2892)8e4220e6

master
803 B29 linesraw
1{
2  description = "NixOS configuration";
3
4  inputs = {
5    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
6    home-manager.url = "github:nix-community/home-manager";
7    home-manager.inputs.nixpkgs.follows = "nixpkgs";
8  };
9
10  outputs = inputs@{ nixpkgs, home-manager, ... }: {
11    nixosConfigurations = {
12      hostname = nixpkgs.lib.nixosSystem {
13        system = "x86_64-linux";
14        modules = [
15          ./configuration.nix
16          home-manager.nixosModules.home-manager
17          {
18            home-manager.useGlobalPkgs = true;
19            home-manager.useUserPackages = true;
20            home-manager.users.jdoe = import ./home.nix;
21
22            # Optionally, use home-manager.extraSpecialArgs to pass
23            # arguments to home.nix
24          }
25        ];
26      };
27    };
28  };
29}