refactor(overlays): change dir structure
This commit is contained in:
parent
3184379170
commit
52f2d8711f
21 changed files with 22 additions and 48 deletions
|
@ -14,6 +14,7 @@
|
||||||
|
|
||||||
./modules
|
./modules
|
||||||
./overlays
|
./overlays
|
||||||
|
./pkgs
|
||||||
|
|
||||||
nur.nixosModules.nur
|
nur.nixosModules.nur
|
||||||
nh.nixosModules.default
|
nh.nixosModules.default
|
||||||
|
|
|
@ -3,7 +3,7 @@ final: prev: {
|
||||||
patches =
|
patches =
|
||||||
(o.patches or [])
|
(o.patches or [])
|
||||||
++ [
|
++ [
|
||||||
./patches/wayland.patch
|
./wayland.patch
|
||||||
];
|
];
|
||||||
buildInputs =
|
buildInputs =
|
||||||
(o.buildInputs or [])
|
(o.buildInputs or [])
|
|
@ -1,30 +1,14 @@
|
||||||
{neovim-flake, nixpkgs-wayland, ...}: {
|
{neovim-flake, nixpkgs-wayland, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
./dracula-theme.nix
|
./dracula-theme
|
||||||
./regreet.nix
|
./regreet
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(import ./blueberry.nix)
|
(import ./blueberry)
|
||||||
(import ./squeekboard.nix)
|
(import ./squeekboard)
|
||||||
|
|
||||||
neovim-flake.overlay
|
neovim-flake.overlay
|
||||||
nixpkgs-wayland.overlay
|
nixpkgs-wayland.overlay
|
||||||
|
|
||||||
(final: prev: {
|
|
||||||
spotifywm = final.callPackage ./pkgs/spotifywm.nix {};
|
|
||||||
})
|
|
||||||
|
|
||||||
(final: prev: {
|
|
||||||
input-emulator = final.callPackage ./pkgs/input-emulator.nix {};
|
|
||||||
})
|
|
||||||
|
|
||||||
(final: prev: {
|
|
||||||
pam-fprint-grosshack = final.callPackage ./pkgs/pam-fprint-grosshack.nix {};
|
|
||||||
})
|
|
||||||
|
|
||||||
(final: prev: {
|
|
||||||
coloryou = final.callPackage ./pkgs/coloryou/default.nix {};
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
hash = "sha256-7YwkBzkAND9lfH2ewuwna1zUkQStBBx4JHGw3/+svhA=";
|
hash = "sha256-7YwkBzkAND9lfH2ewuwna1zUkQStBBx4JHGw3/+svhA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
dracula-script = ./patches/dracula-plymouth.patch;
|
dracula-script = ./dracula-plymouth.patch;
|
||||||
|
|
||||||
git-colors = pkgs.fetchFromGitHub {
|
git-colors = pkgs.fetchFromGitHub {
|
||||||
owner = "dracula";
|
owner = "dracula";
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
in {
|
in {
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
dracula-theme = prev.dracula-theme.overrideAttrs (oldAttrs: rec {
|
dracula-theme = prev.dracula-theme.overrideAttrs (oldAttrs: {
|
||||||
src = prev.fetchFromGitHub {
|
src = prev.fetchFromGitHub {
|
||||||
owner = "dracula";
|
owner = "dracula";
|
||||||
repo = "gtk";
|
repo = "gtk";
|
|
@ -1,21 +0,0 @@
|
||||||
diff --git a/data/meson.build b/data/meson.build
|
|
||||||
index 1ceaa11..68decdf 100644
|
|
||||||
--- a/data/meson.build
|
|
||||||
+++ b/data/meson.build
|
|
||||||
@@ -42,11 +42,7 @@
|
|
||||||
configure_file(
|
|
||||||
|
|
||||||
# Systemd service unit
|
|
||||||
systemd = dependency('systemd', required: false)
|
|
||||||
-if systemd.found()
|
|
||||||
- systemd_service_install_dir = systemd.get_variable(pkgconfig :'systemdsystemunitdir')
|
|
||||||
-else
|
|
||||||
- systemd_service_install_dir = join_paths(libdir, 'systemd', 'system')
|
|
||||||
-endif
|
|
||||||
+systemd_service_install_dir = join_paths(libdir, 'systemd', 'system')
|
|
||||||
|
|
||||||
configure_file(
|
|
||||||
configuration: conf_data,
|
|
||||||
--
|
|
||||||
2.41.0
|
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
# temp fix until https://github.com/rharish101/ReGreet/issues/32 is solved
|
# temp fix until https://github.com/rharish101/ReGreet/issues/32 is solved
|
||||||
patches = [./patches/regreet.patch];
|
patches = [./crash-fix.patch];
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
|
@ -2,8 +2,6 @@ final: prev: {
|
||||||
squeekboard = prev.squeekboard.overrideAttrs (o: {
|
squeekboard = prev.squeekboard.overrideAttrs (o: {
|
||||||
patches =
|
patches =
|
||||||
(o.patches or [])
|
(o.patches or [])
|
||||||
++ [
|
++ [./remove-panel.patch];
|
||||||
./patches/remove-panel.patch
|
|
||||||
];
|
|
||||||
});
|
});
|
||||||
}
|
}
|
12
common/pkgs/default.nix
Normal file
12
common/pkgs/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{...}: let
|
||||||
|
mkPackage = name: (final: prev: {
|
||||||
|
${name} = final.callPackage ./${name} {};
|
||||||
|
});
|
||||||
|
in {
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(mkPackage "coloryou")
|
||||||
|
(mkPackage "input-emulator")
|
||||||
|
(mkPackage "pam-fprint-grosshack")
|
||||||
|
(mkPackage "spotifywm")
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue