-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
90 lines (82 loc) · 2.57 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
lanzaboote.url = "github:nix-community/lanzaboote";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
auto-cpufreq = {
url = "github:adnanhodzic/auto-cpufreq";
inputs.nixpkgs.follows = "nixpkgs";
};
# hyprland.url = "github:hyprwm/Hyprland";
impermanence.url = "github:nix-community/impermanence";
sddm-catppuccin.url = "github:khaneliman/sddm-catppuccin";
sddm-catppuccin.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nix-gaming.url = "github:fufexan/nix-gaming";
nix-index-database.url = "github:Mic92/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
neovim-flake = {
url = "github:notashelf/neovim-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
game-rs.url = "github:amanse/game-rs/umu";
nixos-cosmic = {
url = "github:lilyinstarlight/nixos-cosmic";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
lanzaboote,
nixos-hardware,
auto-cpufreq,
home-manager,
...
} @ inputs: let
pkgs = import nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true;
overlays = [(import ./home/custom-pkgs/pcsx2.nix) (import ./home/custom-pkgs/nvim/harpoon.nix) (import ./home/custom-pkgs/cemu.nix)];
};
# pkgs = pk.extend (import ./home/custom-pkgs/nvim/harpoon.nix);
in {
inherit pkgs;
# Move to flake parts if this becomes too big idk
templates = {
rust = {
path = ./templates/rust; # Rust
description = "Development environment for Rust";
};
go = {
path = ./templates/go; # golang
description = "Development environment for Golang";
};
};
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit self inputs;};
modules = with nixos-hardware.nixosModules; [
auto-cpufreq.nixosModules.default
home-manager.nixosModules.home-manager
./system
./modules/nixos
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.me = import ./home;
backupFileExtension = ".hm.bak";
extraSpecialArgs = {
inherit inputs pkgs;
};
};
}
# common-pc-laptop
common-pc-laptop-acpi_call
common-pc-laptop-ssd
];
};
};
}