-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
39 lines (36 loc) · 1.08 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
{
description = "NixOS systems and tools by undefusr";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-unstable-small.url = "github:NixOS/nixpkgs/nixos-unstable-small";
ghostty.url = "git+ssh://[email protected]/ghostty-org/ghostty";
};
outputs = inputs@{ self, nixpkgs, nixpkgs-unstable, nixpkgs-unstable-small, ghostty, ... }:
let
username = "undefusr";
in
{
nixosConfigurations."vm-aarch64" = nixpkgs.lib.nixosSystem rec {
system = "aarch64-linux";
specialArgs = {
inherit username;
pkgs-unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
};
environment.systemPackages = [
ghostty.packages.aarch64-linux.default
];
modules = [
./hosts/vmware/default.nix
];
};
};
nixConfig = {
experimental-features = [ "nix-command" "flakes" ];
keep-outputs = true;
keep-derivations = true;
};
}