Advertisement
Guest User

Untitled

a guest
Sep 30th, 2020
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. {
  2. inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-20.09";
  3. inputs.nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
  4.  
  5. inputs.home-manager.url = "github:nix-community/home-manager/master";
  6. inputs.home-manager.inputs.nixpkgs.follows = "/nixpkgs";
  7.  
  8. outputs = inputs: {
  9.  
  10. nixosConfigurations.nixos = inputs.nixpkgs.lib.nixosSystem {
  11. system = "x86_64-linux";
  12. # Things in this set are passed to modules and accessible
  13. # in the top-level arguments (e.g. `{ pkgs, lib, inputs, ... }:`).
  14. specialArgs = {
  15. inherit inputs;
  16. };
  17. modules = [
  18. inputs.home-manager.nixosModules.home-manager
  19.  
  20. ({ pkgs, ... }: {
  21. nix.extraOptions = "experimental-features = nix-command flakes";
  22. nix.package = pkgs.nixFlakes;
  23. nix.registry.nixpkgs.flake = inputs.nixpkgs;
  24.  
  25. home-manager.useGlobalPkgs = true;
  26.  
  27. # for using unstable packages
  28. #nixpkgs.overlays = [
  29. # (final: prev: {
  30. # unstable = import inputs.nixpkgs-unstable { inherit system; config.allowUnfree = true; };
  31. # })
  32. #];
  33. })
  34.  
  35. ./configuration.nix
  36. ];
  37. };
  38.  
  39. };
  40. }
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement