-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathflake.nix
68 lines (60 loc) · 1.61 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
description = "Literal Garbage.";
inputs = {
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
nixpkgs.follows = "nixpkgs-unstable";
home-manager = {
url = "github:nix-community/home-manager";
};
rust-overlay.url = "github:oxalica/rust-overlay";
hyprland.url = "github:hyprwm/Hyprland";
hyprpaper.url = "github:hyprwm/hyprpaper";
hyprpicker.url = "github:hyprwm/hyprpicker";
nix-gaming.url = "github:fufexan/nix-gaming";
catppuccin-toolbox.url = "github:catppuccin/toolbox";
sops-nix.url = "github:Mic92/sops-nix";
};
outputs = {
self,
nixpkgs,
home-manager,
rust-overlay,
hyprland,
sops-nix,
...
} @ inputs: let
overlays = {pkgs, ...}: {
nixpkgs.overlays = with inputs; [
rust-overlay.overlays.default
];
};
config = {
allowBroken = true;
allowUnfree = true;
tarball-ttl = 0;
};
system = "x86_64-linux";
in {
nixosConfigurations.selene = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
{
environment.etc."nix/inputs/nixpkgs".source = nixpkgs.outPath;
nix.nixPath = ["nixpkgs=/etc/nix/inputs/nixpkgs"];
nix.registry.nixpkgs.flake = nixpkgs;
}
./hosts/selene
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
}
overlays
hyprland.nixosModules.default
{programs.hyprland.enable = true;}
sops-nix.nixosModules.sops
];
specialArgs = {inherit system inputs;};
};
};
}