-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
92 lines (82 loc) · 2.88 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
description = "Home Manager configuration of sam";
inputs = {
# Specify the source of Home Manager and Nixpkgs.
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
# nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small";
flake-utils = {
url = "github:numtide/flake-utils";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
neovim-nightly-overlay = {
url = "github:nix-community/neovim-nightly-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
nixgl = {
url = "github:guibou/nixGL";
inputs.nixpkgs.follows = "nixpkgs";
};
pulseaudio-listener = {
url = "github:martsa1/pulseaudio-source-listener";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
home-manager,
flake-utils,
nixgl,
pulseaudio-listener,
...
} @ inputs: let
inherit (self) outputs;
in {
overlays = [
# inputs.neovim-nightly-overlay.overlays.default
inputs.nixgl.overlay
(final: prev: {
dunst-dracula-theme = prev.callPackage ./pkgs/dunst-dracula-theme {};
gtk-dracula-icons = prev.callPackage ./pkgs/gtk-dracula-icons {};
i3-config = prev.callPackage ./pkgs/i3-config {};
polybar-launcher = prev.callPackage ./pkgs/polybar-launcher {};
polybar-mute = prev.callPackage ./pkgs/polybar-mute {};
polybar-spotify = prev.callPackage ./pkgs/polybar-spotify {};
rofi-dracula-theme = prev.callPackage ./pkgs/rofi-dracula-theme {};
})
];
# inside a home-manager.lib.homeManagerConfiguration:
# # Specify your home configuration modules here, for example,
# # the path to your home.nix.
#
# modules = [./machines/xps_laptop/default.nix];
#
# # Optionally use extraSpecialArgs
# # to pass through arguments to home.nix
homeConfigurations = {
"sam@fswbsk088" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
modules = [./machines/sm-fswbsk088/default.nix];
extraSpecialArgs = {inherit inputs outputs;};
};
"sam@laptop-server" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
modules = [./machines/laptop-server/default.nix];
extraSpecialArgs = {inherit inputs outputs;};
};
"sam.martin@WSAC02G100AQ72X" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.aarch64-darwin;
modules = [./machines/mac_dev/default.nix];
extraSpecialArgs = {inherit inputs outputs;};
};
"sam@xps-laptop" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
modules = [./machines/xps_laptop/default.nix];
extraSpecialArgs = {inherit inputs outputs;};
};
};
};
}