-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
34 lines (32 loc) · 1.25 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
{
description = "me when the flake";
inputs = {
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; # change this to "nixpkgs.url" if you wish to use unstable as your main channel instead
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
# you can add more inputs here for them to provide packages, options and etc.
# the syntax is usually <program-name>.url = "github:<repo-owner>:<repo-name>
# you can additionally make it so that the url you provide follows the nixpkgs input above, but some programs may not play well with this. (Though it is rare)
};
outputs = inputs @ {
nixpkgs,
home-manager,
...
}: {
# Replace "HOSTNAMEGOESHERE with your hostname.
# You can make it whatever you want if you are planning to install nixos using your configuration
# you write before installation. Otherwise, use your already existing hostname.
nixosConfigurations.HOSTNAMEGOESHERE = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs;};
modules = [
./hosts
./modules
home-manager.nixosModules.home-manager
];
};
};
}