-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
53 lines (44 loc) · 1.74 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
{
description = "NixOS configuration: development machine";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-22_11.url = "github:nixos/nixpkgs/nixos-22.11";
nixos-hardware.url = "github:nixos/nixos-hardware/master";
home-manager.url = "github:nix-community/home-manager/release-23.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
};
outputs = inputs@{ nixpkgs, nixpkgs-unstable, nixpkgs-22_11, home-manager, nixos-hardware, ... }: {
nixosConfigurations = {
nixos = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
modules = [
./configuration.nix
# tuxedo pulse 15 gen2 specific configuration
nixos-hardware.nixosModules.tuxedo-pulse-15-gen2
# uncomment to apply overlays
# (args: { nixpkgs.overlays = import ./overlays args; })
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.decio = import ./home;
home-manager.extraSpecialArgs = {
pkgs-unstable = import nixpkgs-unstable {
system = system;
config.allowUnfree = true;
config.permittedInsecurePackages = [ "electron-25.9.0" ];
};
pkgs-22_11 = import nixpkgs-22_11 {
system = system;
config.allowUnfree = true;
};
};
}
];
};
};
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
};
}