-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
43 lines (37 loc) · 1.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
{
description = "My NixOS configurations.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
home-manager.url = "github:nix-community/home-manager/release-24.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
nur_rycee.url = "gitlab:rycee/nur-expressions/master";
nur_rycee.flake = false;
vim_plugins.url = "path:./vim";
vim_plugins.inputs.nixpkgs.follows = "nixpkgs";
nix-gc-env.url = "github:Julow/nix-gc-env";
};
outputs = inputs:
let
patch_nixpkgs = input_nixpkgs: patches:
let pkgs = input_nixpkgs.legacyPackages.x86_64-linux;
in pkgs.applyPatches {
name = "nixpkgs";
src = pkgs.path;
inherit patches;
};
nixpkgs = patch_nixpkgs inputs.nixpkgs [
patches/desktop-managers-wallpaper-disable.patch
];
mk_nixos = path:
import "${nixpkgs}/nixos/lib/eval-config.nix" {
system = "x86_64-linux";
specialArgs = inputs // { inherit nixpkgs; };
modules = [ path ];
};
in {
nixosConfigurations.jules-pc = mk_nixos host/home;
nixosConfigurations.jules-work = mk_nixos host/work;
inherit (inputs.vim_plugins) dot_vim;
};
}