split overlays off
This commit is contained in:
parent
c55d5756ea
commit
915e86ea3f
4 changed files with 38 additions and 25 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, ... }: {
|
{ config, overlays, pkgs, ... }: {
|
||||||
networking.hostName = "winter";
|
networking.hostName = "winter";
|
||||||
system.stateVersion = "20.09";
|
system.stateVersion = "20.09";
|
||||||
|
|
||||||
|
|
@ -16,18 +16,9 @@
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = with overlays; [
|
||||||
(self: super: {
|
polybar
|
||||||
polybar = super.polybar.override { i3Support = true; };
|
picom
|
||||||
picom = super.picom.overrideAttrs(old: {
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
repo = "picom";
|
|
||||||
owner = "ibhagwan";
|
|
||||||
rev = "60eb00ce1b52aee46d343481d0530d5013ab850b";
|
|
||||||
sha256 = "1m17znhl42sa6ry31yiy05j5ql6razajzd6s3k2wz4c63rc2fd1w";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
|
|
||||||
33
flake.nix
33
flake.nix
|
|
@ -5,17 +5,26 @@
|
||||||
secrets = { url = "github:LavaDesu/flakes-secrets"; };
|
secrets = { url = "github:LavaDesu/flakes-secrets"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, secrets }: {
|
outputs = { self, nixpkgs, secrets }: with nixpkgs.lib;
|
||||||
nixosConfigurations."winter" = nixpkgs.lib.nixosSystem {
|
let
|
||||||
system = "x86_64-linux";
|
base = {
|
||||||
modules = [
|
system.configurationRevision = mkIf (self ? rev) self.rev;
|
||||||
{
|
nix.registry.nixpkgs.flake = nixpkgs;
|
||||||
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
|
};
|
||||||
nix.registry.nixpkgs.flake = nixpkgs;
|
overlays = {
|
||||||
}
|
picom = import ./overlays/picom.nix;
|
||||||
secrets.nixosModules.winter
|
polybar = import ./overlays/polybar.nix;
|
||||||
./cfg/winter/main.nix
|
};
|
||||||
];
|
in
|
||||||
|
{
|
||||||
|
nixosConfigurations."winter" = nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
modules = [
|
||||||
|
base
|
||||||
|
secrets.nixosModules.winter
|
||||||
|
./cfg/winter/main.nix
|
||||||
|
];
|
||||||
|
specialArgs = { inherit overlays; };
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
10
overlays/picom.nix
Normal file
10
overlays/picom.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
self: super: {
|
||||||
|
picom = super.picom.overrideAttrs(old: {
|
||||||
|
src = super.fetchFromGitHub {
|
||||||
|
repo = "picom";
|
||||||
|
owner = "ibhagwan";
|
||||||
|
rev = "60eb00ce1b52aee46d343481d0530d5013ab850b";
|
||||||
|
sha256 = "1m17znhl42sa6ry31yiy05j5ql6razajzd6s3k2wz4c63rc2fd1w";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
3
overlays/polybar.nix
Normal file
3
overlays/polybar.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
self: super: {
|
||||||
|
polybar = super.polybar.override { i3Support = true; };
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue