-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
95 lines (95 loc) · 2.4 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
93
94
95
{
inputs = {
hyprland-contrib = {
url = "github:hyprwm/contrib";
inputs.nixpkgs.follows = "nixpkgs";
};
# USED TO GET WAYBAR PKG
hyprland = {
url = "github:hyprwm/Hyprland";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "nixpkgs/nixos-unstable";
sops-nix.url = "github:Mic92/sops-nix";
nix-alien = {
url = "github:thiagokokada/nix-alien";
inputs.nixpkgs.follows = "nixpkgs";
};
ironbar = {
url = "github:JakeStanger/ironbar";
inputs.nixpkgs.follows = "nixpkgs";
};
trunk = {
url = "github:wizardwatch/trunk";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
anyrun = {
url = "github:Kirottu/anyrun";
inputs.nixpkgs.follows = "nixpkgs";
};
ags.url = "github:Aylur/ags";
};
outputs =
{ self
, nixpkgs
, trunk
, home-manager
, sops-nix
, nix-alien
, ags
, ironbar
, anyrun
, hyprland-contrib
, hyprland
, ...
}@inputs:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
# imports the system variable
inherit system;
# enable non free packages
config = {
allowUnfree = true;
};
};
in{
nixosConfigurations.willow = nixpkgs.lib.nixosSystem{
system = "x86_64-linux";
specialArgs = {
inherit self;
inherit inputs;
};
modules =
[
sops-nix.nixosModules.sops
home-manager.nixosModules.home-manager
(trunk.nixosModules.common)
(import ./main.nix)
(import ./unixStuff/hardware.nix)
({ pkgs, lib, ... }: {
home-manager = {
extraSpecialArgs = {
inherit self;
inherit inputs;
inherit system;
inherit hyprland;
};
useUserPackages = true;
users.willow = pkgs.lib.mkMerge [
(trunk.nixosModules.userZshStarship)
(trunk.nixosModules.userHyprland (import ./overrides/hyprland.nix))
inputs.ironbar.homeManagerModules.default
inputs.anyrun.homeManagerModules.default
(import ./home.nix)
];
};
})
];
};
};
}