-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
54 lines (53 loc) · 2.44 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
{
description = "A very basic flake";
inputs = { # References Used by Flake
# nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11"; # Stable Nix Packages (Default)
# nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; # Unstable Nix Packages
nixpkgs-master.url = "github:nixos/nixpkgs/master";
nixos-hardware.url = "github:NixOS/nixos-hardware/master"; #https://github.com/NixOS/nixos-hardware/tree/master
home-manager = {url = "github:nix-community/home-manager";
# inputs.nixpkgs.follows = "nixpkgs-unstable";
};
nix-flatpak.url = "github:gmodena/nix-flatpak";
hyprland = {url = "github:hyprwm/Hyprland"; # Requires "hyprland.nixosModules.default" to be added the host modules
# inputs.nixpkgs.follows = "nixpkgs-unstable";
};
nixos-cosmic = {url = "github:lilyinstarlight/nixos-cosmic";
# inputs.nixpkgs.follows = "nixpkgs-unstable";
};
nur.url = "github:nix-community/NUR";
disko = {url = "github:nix-community/disko";
# inputs.nixpkgs.follows = "nixpkgs-unstable";
};
compose2nix = {url = "github:aksiksi/compose2nix";
# inputs.nixpkgs.follows = "nixpkgs-unstable";
};
wirenix.url = "sourcehut:~msalerno/wirenix";
nixos-facter-modules.url = "github:numtide/nixos-facter-modules";
};
outputs = { self, nur, wirenix, nixpkgs-unstable, nixpkgs-stable, nixpkgs-master, home-manager, hyprland, nixos-cosmic, nixos-hardware, compose2nix, nix-flatpak, disko, ... } @ inputs: # Function telling flake which inputs to use
let
vars = { # Variables Used In Flake
user = "bocmo";
location = "$HOME/.flake";
terminal = "alacritty";
editor = "vim";
stateVersion = "24.05";
};
inherit (self) outputs;
in {
nixosConfigurations = (
import ./hosts {
inherit inputs outputs self vars; # Inherit inputs
}
);
# homeConfigurations = (
# import ./nix {
# inherit (nixpkgs) lib;
# inherit inputs nixpkgs nixpkgs-unstable home-manager vars;
# }
# );
};
}