-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
45 lines (42 loc) · 1.35 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
{
description = "Tomaszal Dotfiles";
inputs = {
disko.url = "https://flakehub.com/f/nix-community/disko/1.tar.gz";
disko.inputs.nixpkgs.follows = "nixpkgs";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager/release-23.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs-stable";
keys.url = "github:tomaszal/keys";
keys.inputs.flake-parts.follows = "flake-parts";
keys.inputs.nixpkgs.follows = "nixpkgs";
nix-flatpak.url = "https://flakehub.com/f/gmodena/nix-flatpak/0.3.tar.gz";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-23.11";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} {
imports = [./src/nixos.nix];
systems = ["x86_64-linux"];
perSystem = {
pkgs,
inputs',
...
}: {
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
alejandra
fh
just
nil
statix
];
};
apps.ventoy.program = pkgs.writeShellApplication {
name = "ventoy";
runtimeInputs = [pkgs.ventoy-bin];
text = "sudo ventoy-web";
};
};
};
}