-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
71 lines (67 loc) · 1.75 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
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/release-23.05";
flake-utils.url = "github:numtide/flake-utils";
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, flake-utils, nixos-generators }: {
packages.x86_64-linux = let
pkgs = nixpkgs.legacyPackages.x86_64-linux; in rec {
iso = nixos-generators.nixosGenerate {
system = "x86_64-linux";
modules = [
./overlays.nix
./configuration.nix
];
format = "iso";
};
};
};
}
#flake-utils.lib.eachDefaultSystem (system:
#let
# pkgs = nixpkgs.legacyPackages.${system};
#in
#{
# packages = {
# hello = pkgs.hello;
# matey = pkgs.stdenv.mkDerivation {
# pname = "iimatey";
# src = pkgs.fetchFromGithub {
# owner = "ii";
# repo = "matey";
# rev = "/2f38e83f28db065cdc4f3f1c15c654869165f3a4";
# sha256 = "";
# };
# };
# };
#});
# devShell
# optional arguments:
# explicit nixpkgs and lib:
# pkgs = nixpkgs.legacyPackages.x86_64-linux;
# lib = nixpkgs.legacyPackages.x86_64-linux.lib;
# additional arguments to pass to modules:
# specialArgs = { myExtraArg = "foobar"; };
# you can also define your own custom formats
# customFormats = { "myFormat" = <myFormatModule>; ... };
# format = "myFormat";
# systemd.services.tmuxspawn = {
# enable = true;
# path = [
# wgtunnel
# matey
# pkgs.vim
# # iittyd
# pkgs.ttyd
# pkgs.tmux
# pkgs.wireguard-tools
# ];
# script = ''
# ${matey.outPath}/bin/matey start
# '';
# };