overlays to module
This commit is contained in:
parent
7e03c3f3f1
commit
e1a429bdec
13
default.nix
13
default.nix
@ -1,20 +1,13 @@
|
|||||||
top@{ inputs, ... }: {
|
top@{ inputs, ... }: {
|
||||||
imports = [ ./nixos ./home ./packages ];
|
imports = [ ./nixos ./home ./packages ./overlays ];
|
||||||
systems = [ "x86_64-linux" ];
|
systems = [ "x86_64-linux" ];
|
||||||
flake.stateVersion = "24.05";
|
flake.stateVersion = "24.05";
|
||||||
perSystem = perSystem@{ config, system, ... }: {
|
perSystem = perSystem@{ system, ... }: {
|
||||||
config._module.args = {
|
config._module.args = {
|
||||||
pkgs = import inputs.nixpkgs {
|
pkgs = import inputs.nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays = [
|
overlays = [
|
||||||
(final: prev: {
|
top.config.flake.overlays.default
|
||||||
nvim = config.packages.nvim;
|
|
||||||
bingwp = config.packages.bingwp;
|
|
||||||
screenshot = config.packages.screenshot;
|
|
||||||
cursors = config.packages.cursors;
|
|
||||||
wpd = config.packages.wpd;
|
|
||||||
})
|
|
||||||
inputs.sal.overlays.default
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -18,7 +18,7 @@ top@{ moduleWithSystem, ... }: {
|
|||||||
i18n.supportedLocales = [ "all" ];
|
i18n.supportedLocales = [ "all" ];
|
||||||
time.timeZone = "Europe/Prague";
|
time.timeZone = "Europe/Prague";
|
||||||
environment = {
|
environment = {
|
||||||
systemPackages = with pkgs; [ cmatrix uutils-coreutils-noprefix cryptsetup fd file git glibc gnumake mlocate openssh openssl procs ripgrep srm unzip vim zip just ];
|
systemPackages = with pkgs; [ wpd cmatrix uutils-coreutils-noprefix cryptsetup fd file git glibc gnumake mlocate openssh openssl procs ripgrep srm unzip vim zip just ];
|
||||||
sessionVariables = { MAKEFLAGS = "-j 4"; };
|
sessionVariables = { MAKEFLAGS = "-j 4"; };
|
||||||
shells = with pkgs; [ bash zsh nushell ];
|
shells = with pkgs; [ bash zsh nushell ];
|
||||||
};
|
};
|
||||||
|
14
overlays/default.nix
Normal file
14
overlays/default.nix
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
top@{ inputs, withSystem, ... }: {
|
||||||
|
flake.overlays.default = final: prev:
|
||||||
|
let system = prev.stdenv.hostPlatform.system; in
|
||||||
|
withSystem system (
|
||||||
|
{ config, ... }: {
|
||||||
|
nvim = config.packages.nvim;
|
||||||
|
bingwp = config.packages.bingwp;
|
||||||
|
screenshot = config.packages.screenshot;
|
||||||
|
cursors = config.packages.cursors;
|
||||||
|
wpd = config.packages.wpd;
|
||||||
|
sal = inputs.sal.packages.${system}.default;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user