-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
53 lines (51 loc) · 1.52 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 = "System configurations for all of my personal machines";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:NixOS/nixos-hardware";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
jovian = {
url = "github:Jovian-Experiments/Jovian-NixOS";
inputs.nixpkgs.follows = "nixpkgs";
};
paisa = {
url = "github:ananthakumaran/paisa";
inputs.nixpkgs.follows = "nixpkgs";
};
caligula = {
url = "github:ifd3f/caligula";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
inputs @ { self # Binding all function paramenters to inputs is helpful
, nixpkgs
, home-manager
, jovian
, nixos-hardware
, caligula
, ...
}: {
nixosConfigurations = {
sean-steamdeck = nixpkgs.lib.nixosSystem rec {
# Allows me to refer to flake inputs within other files
specialArgs = { inherit inputs; };
system = "x86_64-linux";
modules = [
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit inputs system; };
home-manager.users.sean = import ./home/home.nix;
nixpkgs.overlays = [ (import ./overlays) ];
}
./nixos/configuration.nix
];
};
};
};
}