-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
113 lines (112 loc) · 3.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
inputs = {
catppuccin-bat = {
url = "github:catppuccin/bat";
flake = false;
};
catppuccin-starship = {
url = "github:catppuccin/starship";
flake = false;
};
catppuccin-yazi = {
url = "github:catppuccin/yazi";
flake = false;
};
git-toprepo.url = "github:meroton/git-toprepo";
neorg-overlay.url = "github:nvim-neorg/nixpkgs-neorg-overlay";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:NixOs/nixos-hardware/master";
nixneovimplugins.url = "github:NixNeovim/NixNeovim";
nix-alien.url = "github:thiagokokada/nix-alien";
nixgl.url = "github:guibou/nixGL";
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
hyprland-contrib = {
url = "github:hyprwm/contrib";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprgrass = {
url = "github:horriblename/hyprgrass";
inputs.hyprland.follows = "hyprland";
};
split-monitor-workspaces = {
url = "github:Duckonaut/split-monitor-workspaces";
inputs.hyprland.follows = "hyprland";
};
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
wsl = {
url = "github:nix-community/NixOS-WSL";
inputs.nixpkgs.follows = "nixpkgs";
};
wezterm = {
url = "github:wez/wezterm?dir=nix";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
nh = {
url = "github:viperML/nh";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{ self, nixpkgs, ... }@inputs:
let
pkgs = import nixpkgs { system = "x86_64-linux"; };
in
rec {
formatter.x86_64-linux = pkgs.nixfmt-rfc-style;
checks.x86_64-linux = {
nixfmt = pkgs.stdenv.mkDerivation {
name = "nixfmt";
src = ./.;
doCheck = true;
dontBuild = true;
nativeBuildInputs = with pkgs; [ nixfmt-rfc-style ];
checkPhase = # bash
''
nixfmt --check $(find . -name "*.nix" ! -name "flake.nix")
'';
installPhase = ''
mkdir $out
'';
};
};
nixosConfigurations = self.lib.importHosts ./hosts {
inherit inputs;
inherit (self) nixosModules homeManagerModules;
};
nixosModules = self.lib.importModules ./nixos/modules;
homeManagerModules = self.lib.importModules ./home-manager/modules;
homeConfigurations."avass@5CG0388QDR" = inputs.home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true;
overlays = [
inputs.nixneovimplugins.overlays.default
inputs.nixgl.overlay
inputs.neorg-overlay.overlays.default
];
};
modules = [
./homes/vcc/home.nix
homeManagerModules.devtools
homeManagerModules.social-media
homeManagerModules.music
];
extraSpecialArgs = {
inherit inputs;
inherit (self) homeManagerModules;
};
};
lib = import ./lib { inherit (nixpkgs) lib; };
};
}