-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
105 lines (93 loc) · 3.59 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
nixos-hardware.url = "github:nixos/nixos-hardware";
nixos-images.url = "github:nix-community/nixos-images";
nixos-anywhere.url = "github:nix-community/nixos-anywhere";
nixos-anywhere.inputs.nixpkgs.follows = "nixpkgs";
impermanence.url = "github:nix-community/impermanence";
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
nix-darwin.url = "github:lnl7/nix-darwin";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager/release-24.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
vulnix.url = "github:nix-community/vulnix";
base16.url = "github:SenchoPens/base16.nix";
tt-schemes.url = "github:tinted-theming/schemes";
tt-schemes.flake = false;
base16-vim.url = "github:tinted-theming/base16-vim";
base16-vim.flake = false;
plasma-manager.url = "github:nix-community/plasma-manager";
plasma-manager.inputs.nixpkgs.follows = "nixpkgs";
plasma-manager.inputs.home-manager.follows = "home-manager";
neovim-nightly.url = "github:nix-community/neovim-nightly-overlay";
twm.url = "github:vinnymeller/twm";
twm.inputs.nixpkgs.follows = "nixpkgs";
todo.url = "github:dominicegginton/todo";
todo.inputs.nixpkgs.follows = "nixpkgs";
flip.url = "github:dominicegginton/flip";
flip.inputs.nixpkgs.follows = "nixpkgs";
roll.url = "github:dominicegginton/roll";
roll.inputs.nixpkgs.follows = "nixpkgs";
};
nixConfig.experimental-features = [ "nix-command" "flakes" "pipe-operators" ];
outputs = { self, nixpkgs, flake-utils, ... }:
let
inherit (self) inputs outputs;
stateVersion = "24.05";
theme = "dark";
lib = import ./lib.nix { inherit inputs outputs stateVersion theme; };
overlays = import ./overlays.nix { inherit inputs lib; };
templates = import ./templates { };
in
with lib;
with flake-utils.lib;
eachDefaultSystem
(system:
let
pkgs = import nixpkgs {
inherit system;
hostPlatform = system;
config = {
joypixels.acceptLicense = true;
nvidia.acceptLicense = true;
allowUnfree = true;
allowBroken = true;
};
overlays = with overlays; [
additions
modifications
unstable-packages
inputs.flip.overlays.default
inputs.roll.overlays.default
];
};
in
{
formatter = pkgs.nixpkgs-fmt;
legacyPackages = pkgs;
devShells = {
android = pkgs.callPackage ./shells/android.nix { };
default = pkgs.callPackage ./shell.nix { };
nodejs = pkgs.callPackage ./shells/nodejs.nix { };
python = pkgs.callPackage ./shells/python.nix { };
python-notebook = pkgs.callPackage ./shells/python-notebook.nix { };
};
})
//
{
inherit overlays templates;
nixosConfigurations = {
ghost-gs60 = mkNixosHost { hostname = "ghost-gs60"; };
latitude-5290 = mkNixosHost { hostname = "latitude-5290"; };
latitude-7390 = mkNixosHost { hostname = "latitude-7390"; };
nixos-installer = mkNixosHost { hostname = "nixos-installer"; };
};
darwinConfigurations = {
MCCML44WMD6T = mkDarwinHost { hostname = "MCCML44WMD6T"; };
};
};
}