-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathflake.nix
More file actions
132 lines (105 loc) · 3.31 KB
/
Copy pathflake.nix
File metadata and controls
132 lines (105 loc) · 3.31 KB
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
description = "A highly awesome system configuration.";
inputs = {
#nixpkgs.url = "/home/gytis/nixpkgs/";
#unstable.url = "/home/gytis/nixpkgs";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
unstable.url = "github:NixOS/nixpkgs";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
utils.url = "github:gytis-ivaskevicius/flake-utils-plus";
#utils.url = "/home/gytis/Projects/flake-utils-plus";
nix2vim.url = "/home/gytis/Projects/NIX/nix2vim";
#nix2vim.url = "github:gytis-ivaskevicius/nix2vim";
nix2vim.inputs.nixpkgs.follows = "";
nix2vim.inputs.flake-utils.follows = "utils";
home-manager = {
url = "github:nix-community/home-manager/release-26.05";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
inputs@{ self
, nix2vim
, utils
, home-manager
, nixos-hardware
, ...
}: let
pkgs = self.pkgs.x86_64-linux.nixpkgs;
inherit (utils.lib) mkApp;
suites = import ./suites.nix { inherit utils; };
in
with suites.nixosModules;
utils.lib.mkFlake {
inherit self inputs;
inherit (suites) nixosModules;
supportedSystems = [
"aarch64-linux"
"x86_64-linux"
];
channelsConfig.allowUnfree = true;
channelsConfig.allowBroken = false;
channels.nixpkgs.overlaysBuilder = channels: [
(final: prev: {
inherit (channels.unstable) claude-code code cursor bun opencode spec-kit vscode nixfmt;
#inherit (channels.unstable) pure-prompt neovim-unwrapped linuxPackages_latest gcc11Stdenv layan-gtk-theme;
})
];
hosts.Monday.modules = suites.desktopModules ++ [
aarch64Dev
dev
#inputs.nixos-cosmic.nixosModules.default
./hosts/Monday.host.nix
nixos-hardware.nixosModules.common-pc
nixos-hardware.nixosModules.common-pc-ssd
nixos-hardware.nixosModules.common-hidpi
nixos-hardware.nixosModules.common-gpu-amd
nixos-hardware.nixosModules.common-cpu-amd-pstate
nixos-hardware.nixosModules.common-cpu-amd-zenpower
#./config/k3s.nix
];
hosts."gytis-ivaskevicius".modules = suites.desktopModules ++ [
dev
./hosts/gytis-ivaskevicius.host.nix
];
hosts.Morty.modules = suites.desktopModules ++ [
./hosts/Morty.host.nix
];
hosts.NixyServer.modules = [
containers
./hosts/NixyServer.host.nix
];
sharedOverlays = [
self.overlay
nix2vim.overlay
(final: prev: {
#nix2vimDemo = prev.g-neovim;
firefox = prev.g-firefox;
})
];
hostDefaults.modules = [
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
}
] ++ suites.sharedModules;
#############################
### Flake package outputs ###
#############################
outputsBuilder = channels: with channels.nixpkgs;{
packages = {
repl = pkgs.callPackage utils.blueprints.fup-repl { };
inherit
nix2vimDemo
g-firefox
g-lf
shell-config
;
};
devShell = mkShell {
buildInputs = [ git transcrypt ];
};
};
overlay = import ./overlays;
};
}