-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
90 lines (79 loc) · 2.27 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
{
description = "Here's my effort to keep myself on nixos while having a comfy and crazy workstation";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
nixpkgs-f2k.url = "github:moni-dz/nixpkgs-f2k";
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
cutefetch.url = "github:alphatechnolog/cutefetch";
webx.url = "github:face-hh/webx";
nexusfetch.url = "gitlab:alxhr0/nexusfetch";
aether-shell.url = "github:alphatechnolog/aether-shell";
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
ags.url = "github:Aylur/ags";
decay-nvim-src = {
url = "github:decaycs/decay.nvim";
flake = false;
};
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
apple-cursor-src = {
url = "github:ful1e5/apple_cursor";
flake = false;
};
decay-discord-src = {
url = "github:decaycs/decay-discord";
flake = false;
};
picom-sdhand-src = {
url = "github:sdhand/picom";
flake = false;
};
};
outputs = {
self,
nixpkgs,
...
} @ inputs: let
config = import ./config.nix;
inherit (config) system;
in
with config; rec {
devShells.${system}.default = let
nixSystem = nixosConfigurations.${hostname};
vm = nixSystem.config.system.build.vm;
pkgs = import nixpkgs { inherit system; };
lib = pkgs.lib;
in
pkgs.mkShell {
name = "dev-shell";
buildInputs = [vm];
shellHook = ''
echo "Type ${lib.getExe vm} to run the system vm"
'';
};
nixosConfigurations.${hostname} = nixpkgs.lib.nixosSystem rec {
inherit system;
specialArgs = {
inherit inputs system;
flakeConfig = config;
};
modules =
[mainModule]
++ (
if !config.modules.homeManager.enable
then []
else
(with inputs; [
home-manager.nixosModules.home-manager
(mainModule + /home-manager.nix)
])
);
};
};
}