-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
85 lines (75 loc) · 2.59 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
{
description = "My dotfiles Flake";
outputs =
inputs@{
nixpkgs,
home-manager,
...
}:
let
inherit (nixpkgs) lib;
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
commonArgs = rec {
inherit inputs;
myUsername = "cvincent";
myHomeDir = "/home/${myUsername}";
myHostname = "nether";
mySopsKey = /home/${myUsername}/.config/sops/age/keys.txt;
mySystem = system;
myTZ = "America/Chicago";
myLocale = "en_US.UTF-8";
importAttrs = {
inherit system;
config.allowUnfree = true;
};
nixpkgs-latest = import inputs.nixpkgs-latest importAttrs;
nixpkgs-unstable = import inputs.nixpkgs-unstable importAttrs;
nixpkgs-unstable-latest = import inputs.nixpkgs-unstable-latest importAttrs;
browser-pkgs = import inputs.browser-pkgs importAttrs;
nixpkgs-slack = import inputs.nixpkgs-slack importAttrs;
nixpkgs-yt-dlp = import inputs.nixpkgs-yt-dlp importAttrs;
nixpkgs-zoom = import inputs.nixpkgs-zoom importAttrs;
};
in
{
nixosConfigurations = {
"${commonArgs.myHostname}" = lib.nixosSystem {
inherit system;
specialArgs = commonArgs;
modules = [
./configuration.nix
];
};
};
homeConfigurations = {
"${commonArgs.myUsername}" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = commonArgs;
modules = [
./utils.nix
./home.nix
];
};
};
};
inputs = {
nixpkgs.url = "nixpkgs/nixos-23.11";
nixpkgs-latest.url = "nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
nixpkgs-unstable-latest.url = "nixpkgs/nixos-unstable";
browser-pkgs.url = "nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager/release-23.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.4.1";
sops-nix.url = "github:Mic92/sops-nix";
hyprland.url = "github:hyprwm/Hyprland?ref=v0.45.0";
xremap-flake.url = "github:xremap/nix-flake";
stylix.url = "github:danth/stylix";
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
nixpkgs-slack.url = "nixpkgs/nixos-unstable";
nixpkgs-zoom.url = "github:NixOS/nixpkgs/3f316d2a50699a78afe5e77ca486ad553169061e";
nixpkgs-yt-dlp.url = "nixpkgs/nixos-unstable";
ha-notifier.url = "github:cvincent/ha-notifier";
};
}