-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
53 lines (49 loc) · 1.56 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 = "Avery`s System Configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
musnix.url = "github:musnix/musnix";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs@{ self, nixpkgs, musnix, rust-overlay, home-manager, ... }: {
nixosConfigurations = {
nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
musnix.nixosModules.musnix
./system/bootloader.nix
./system/configuration.nix
./system/fonts.nix
./system/gc.nix
./system/gnome.nix
./system/hyprland.nix
./system/networking.nix
#./system/nh.nix
./system/nvidia.nix
./system/printing.nix
./system/sound.nix
./system/time.nix
./system/users.nix
({ pkgs, ... }: {
nixpkgs.overlays = [ rust-overlay.overlays.default ];
environment.systemPackages = [ pkgs.rust-bin.stable.latest.default ];
})
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.avery = import ./user/avery/home.nix;
home-manager.users.yngtdd = import ./user/yngtdd/home.nix;
}
];
specialArgs = { inherit inputs; };
};
};
};
}