-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
54 lines (47 loc) · 1.45 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 = "My NixOS config";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
# impermanence.url = "github:nix-community/impermanence";
# using the unmerged PR with defaultDirectoryMethod for the impermanence home-manager module
impermanence.url = "github:Misterio77/impermanence/65a12c0542b18fa380c18364c6091088ec09f29b";
# dwl-flake = {
# url = "github:maxbfuer/dwl";
# inputs.nixpkgs.follows = "nixpkgs";
# };
};
outputs = {
nixpkgs,
nixpkgs-unstable,
home-manager,
impermanence,
...
} @ inputs: let
system = "x86_64-linux";
pkgs-unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
in {
# define the formatter used by `nix fmt`
formatter.${system} = nixpkgs.legacyPackages.${system}.alejandra;
nixosConfigurations = {
gaia = nixpkgs.lib.nixosSystem {
# pass inputs as args to all submodules
specialArgs = {inherit inputs system pkgs-unstable;};
modules = [
./nixosModules/importer.nix
./hosts/gaia/configuration.nix
./home-manager.nix
home-manager.nixosModules.home-manager
impermanence.nixosModules.impermanence
];
};
};
};
}