-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
40 lines (38 loc) · 972 Bytes
/
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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
custom-emojis = {
url = "github:cuties-social/custom-emojis";
flake = false;
};
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, sops-nix, ... }@inputs: let
overlays = [
sops-nix.overlays.default
(import ./packages/default.nix inputs)
];
pkgs = import nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true;
overlays = overlays;
};
in {
nixosConfigurations.kuschelhaufen = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit nixpkgs; };
modules = [
./configuration.nix
sops-nix.nixosModules.sops
({pkgs, ...}: {
nixpkgs.overlays = overlays;
nixpkgs.config.allowUnfree = true;
})
];
};
legacyPackages.x86_64-linux = pkgs;
};
}