-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
45 lines (43 loc) · 1.24 KB
/
flake.nix
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
36
37
38
39
40
41
42
43
44
45
{
description = "Home Manager configuration of jjones";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
# TODO: wire up shell plugins
# https://developer.1password.com/docs/cli/shell-plugins/nix/
_1password-shell-plugins.url = "github:1Password/shell-plugins";
};
outputs = inputs@{ nixpkgs, home-manager, ... }:
let
system = "x86_64-linux";
lib = nixpkgs.lib;
pkgs = nixpkgs.legacyPackages.${system};
userSettings = rec {
username = "jjones";
email = "joshua@general-metrics.com";
fullName = "Joshua Jones";
fontFamilyTerm = "IosevkaTerm Nerd Font";
fontFamilyGui = "SpaceMono Nerd Font";
fontSize = 16.0;
};
in
{
nixosConfigurations = {
inherit pkgs;
nixos = lib.nixosSystem {
modules = [ ./configuration.nix ];
};
};
homeConfigurations."jjones" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./home.nix ];
extraSpecialArgs = {
inherit userSettings;
inherit inputs;
};
};
};
}