-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
35 lines (32 loc) · 1.03 KB
/
flake.nix
File metadata and controls
35 lines (32 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
description = "Zap's NixOS dotfiles";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-neovim = {
url = "github:ziap/nix-neovim";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, home-manager, nix-neovim, ... }: let
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in {
# Set home manager as the default package so that we can `nix run .`
packages = forAllSystems (system: {
default = home-manager.packages.${system}.default;
});
# Home manager configuration modules
homeConfigurations."zap" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = { inherit nix-neovim; };
modules = [ ./home-manager/home.nix ];
};
nixosModules.userConfig = { config, ... }: {
imports = [ ./desktop/user.nix ];
};
};
}