-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
80 lines (72 loc) · 2.56 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
{
description = "A very basic flake";
inputs = {
nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable;
nixpkgs2305.url = github:NixOS/nixpkgs/23.05;
nixpkgsNode14.url = github:NixOS/nixpkgs/f21b6f77ac562732a4c9b8d1e5751c97853fe873;
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, nixpkgs2305, nixpkgsNode14, home-manager, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
pkgs2305 = (import nixpkgs2305 {
inherit system;
config.permittedInsecurePackages = ["nodejs-16.20.0"];
});
pkgsNode14 = (import nixpkgsNode14 {
inherit system;
});
in {
nixosConfigurations = {
laptopYoga = nixpkgs.lib.nixosSystem {
inherit system;
# environment.systemPackages = [
# nixpkgsTeams.legacyPackages.${system}.teams
# ];
specialArgs = {
inherit system;
username = "gerkules";
};
modules = [
./configuration.nix
./hardware-configuration.nix
./modules/xserver.nix
./modules/environment-laptopYoga.nix
./modules/audio.nix
./modules/networking.nix
./modules/systemPackages.nix
./modules/yoga-laptop-hardware.nix
./modules/direnv.nix
./modules/systemState.nix
./modules/udev.nix
./modules/libvert.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.gerkules = import ./home-gerkules.nix;
}
];
};
};
devShells.${system} = let
jsPackages = with pkgs; [nodejs yarn nodePackages.typescript-language-server];
in {
jsn16 = (import ./devShells/jsn16.nix { inherit pkgs pkgs2305; });
jsn14 = (import ./devShells/jsn14.nix { inherit pkgs pkgsNode14; });
reactNative = (import ./devShells/reactNative.nix { inherit pkgs jsPackages; });
ocaml = (import ./devShells/ocaml.nix { inherit pkgs; });
playwright = (import ./devShells/playwright.nix { inherit pkgs; });
# ----> The packages for these are installed by default <----
# ###########################################################
#
# js = import ./devShells/js.nix { inherit jsPackages; };
# cypress = (import ./devShells/cypress.nix { inherit pkgs jsPackages; });
# clojure = (import ./devShells/clojure.nix { inherit pkgs; });
};
};
}