-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
108 lines (96 loc) · 3.04 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
description = "Ivan Pancheniak System Config";
inputs = {
#nixpkgs.url = "github:Scrumplex/nixpkgs/nixos-monado";
nixpkgs.url = "nixpkgs/nixos-unstable";
#nixpkgs.url = "nixpkgs/master";
#nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
ow-mod-man.url = "github:ow-mods/ow-mod-man";
ow-mod-man.inputs.nixpkgs.follows = "nixpkgs";
loconix.url = "github:loco-choco/loconix/main";
loconix.inputs.nixpkgs.follows = "nixpkgs";
nixvim.url = "github:nix-community/nixvim/main";
nixvim.inputs.nixpkgs.follows = "nixpkgs";
nixpkgs-xr.url = "github:nix-community/nixpkgs-xr";
nixpkgs-xr.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { nixpkgs, home-manager, ow-mod-man, loconix, nixvim, nixpkgs-xr, ... }:
let
system = "x86_64-linux";
#loconix-overlay = final: prev: {
# ltspice = loconix.packages.${system}.ltspice;
#};
xr-hardware-overlay = final: prev: {
xr-hardware = prev.xr-hardware.overrideAttrs {
src = prev.fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "locochoco";
repo = "xr-hardware";
rev = "fffde359be7ec56352dae74c80b17a6a22386f48";
hash = "sha256-ltLMYT/B66X2ToUimaVcymXsNDUQGeqMqvPJ+FMs9Y4=";
};};
};
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
permittedInsecurePackages = [
"openssl-1.1.1w"
];
};
overlays = [ ow-mod-man.overlays.default loconix.overlay.wineApps loconix.overlay.erosanix-lib xr-hardware-overlay ];
};
lib = nixpkgs.lib;
in {
homeConfigurations = {
locochoco = home-manager.lib.homeManagerConfiguration {
#pkgs = nixpkgs.legacyPackages.${system};
inherit pkgs;
modules = [
nixvim.homeManagerModules.nixvim
./users/locochoco/home.nix
{
home = {
username = "locochoco";
homeDirectory = "/home/locochoco";
};
}
];
};
};
nixosConfigurations = {
locopc = lib.nixosSystem {
inherit system;
inherit pkgs;
modules = [
./system/locopc/configuration.nix
nixpkgs-xr.nixosModules.nixpkgs-xr
];
};
locotop = lib.nixosSystem {
inherit system;
inherit pkgs;
modules = [
./system/locotop/configuration.nix
];
};
};
nixConfig = {
experimental-features = [ "nix-command" "flakes" ];
substituters = [
"https://cache.nixos.org/"
];
extra-substituters = [
"https://ow-mods.cachix.org"
# Nix community's cache server
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"ow-mods.cachix.org-1:6RTOd1dSRibA2W0MpZHxzT0tw1RzyhKObTPKQJpcrZo="
];
};
};
}