-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
64 lines (57 loc) · 2.17 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
{
description = "A NixOS flake with support for Linux and Darwin";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs-stable.url = "nixpkgs/nixos-24.11";
nixos-hardware.url = "github:nixos/nixos-hardware/master"; # Hardware Specific Configurations
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
# NOTE(aver): Don't use the default flake input, as it breaks when building with split-monitor-workspaces
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
# Some additional overlays
neovim-nightly.url = "github:nix-community/neovim-nightly-overlay";
# DayZ Launcher
dzgui-nix = {
url = "github:lelgenio/dzgui-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
zen-browser.url = "github:MarceColl/zen-browser-flake";
};
outputs = inputs@{ nixpkgs, nixpkgs-stable, nixos-hardware, home-manager, ... }:
let
systemSettings = {
system = "x86_64-linux";
timezone = "Europe/Zurich";
locale = "en_US.UTF-8";
kernelVersion = "6_12";
username = "arminveres";
};
pkgs = import nixpkgs {
system = systemSettings.system;
config = { allowUnfree = true; };
overlays = [ inputs.neovim-nightly.overlays.default ];
};
pkgs-stable = import nixpkgs-stable {
system = systemSettings.system;
config = { allowUnfree = true; };
overlays = [ inputs.neovim-nightly.overlays.default ];
};
in {
# NOTE(aver): We let Home Manager be managed through flakes, therefore no `homeConfigurations`
# needed here
nixosConfigurations = (import ./hosts {
inherit (nixpkgs) lib;
inherit inputs nixpkgs pkgs pkgs-stable nixos-hardware systemSettings home-manager;
});
/* # NOTE(aver): don't inherit pkgs and system, as it is not a x86_64-linux based system
darwinConfigurations =
(import ./darwin { inherit self inputs nixpkgs home-manager nix-darwin; });
*/
};
}