-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
82 lines (74 loc) · 2.38 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
{
inputs = {
nixpkgs.url = github:NixOS/nixpkgs/master;
home-manager.url = github:nix-community/home-manager/master;
home-manager.inputs.nixpkgs.follows = "nixpkgs";
agenix.url = github:ryantm/agenix;
agenix.inputs.nixpkgs.follows = "nixpkgs";
tomato-c.url = "github:gabrielzschmitz/Tomato.C";
tomato-c.inputs.nixpkgs.follows = "nixpkgs";
nix-colors.url = "github:misterio77/nix-colors";
battery-notifier.url = "github:luisnquin/battery-notifier";
};
outputs = { self, nixpkgs, home-manager, agenix, battery-notifier,
nix-colors, tomato-c, ... }@attrs:
let
system = "x86_64-linux";
tomato-c-overlay = final: prev: {
tomato-c = tomato-c.defaultPackage.${system};
};
i3lock-fancy-rapid-overlay = final: prev: {
i3lock-fancy-rapid = pkgs.callPackage ./custom_packages/i3lock-fancy-rapid.nix {};
};
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
permittedInsecurePackages = [ ];
};
overlays = [ tomato-c-overlay i3lock-fancy-rapid-overlay ];
};
lib = nixpkgs.lib // home-manager.lib;
in
{
nixosConfigurations.roxanne = lib.nixosSystem {
inherit system;
inherit pkgs;
specialArgs = attrs;
modules = [
./configuration.nix
agenix.nixosModules.default
];
};
homeConfigurations = {
# Desktops
coveiro = lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = { inherit nix-colors; };
modules = [
./home.nix
agenix.homeManagerModules.default
{
home = {
username = "coveiro";
homeDirectory = "/home/coveiro";
};
}
battery-notifier.homeManagerModule.default
{
services.battery-notifier = {
enable = true;
settings = {
icon_path = "/home/coveiro/Downloads/SVG/\"LD+R Ofer's Skull.svg\""; # Nix path
interval_ms = 700;
reminder = {threshold = 50;};
warn = {threshold = 30;};
threat = {threshold = 12;};
};
};
}
];
};
};
};
}