remove extra-packages from overlays
This commit is contained in:
parent
3b48a06e59
commit
3a7584a890
20 changed files with 32 additions and 31 deletions
10
extra-packages/default.nix
Normal file
10
extra-packages/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
pkgs: {
|
||||
dracula-gtk = pkgs.callPackage ./dracula-gtk { };
|
||||
misc-scripts = pkgs.callPackage ./scripts/misc { };
|
||||
getpaper = pkgs.callPackage ./scripts/getpaper { };
|
||||
setpaper = pkgs.callPackage ./scripts/setpaper { };
|
||||
youtube = pkgs.callPackage ./scripts/youtube { };
|
||||
rofi-bluetooth = pkgs.callPackage ./rofi-bluetooth { };
|
||||
smc-manjari = pkgs.callPackage ./smc-manjari { };
|
||||
smc-nupuram = pkgs.callPackage ./smc-nupuram { };
|
||||
}
|
18
flake.nix
18
flake.nix
|
@ -34,20 +34,20 @@
|
|||
} @ inputs:
|
||||
let
|
||||
secrets = import ./secrets.nix;
|
||||
nixpkgs-config = {
|
||||
allowUnfree = true;
|
||||
packages = system: import nixpkgs {
|
||||
inherit system;
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
};
|
||||
extra-packages = system: import ./extra-packages (packages system);
|
||||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
Skipper = nixpkgs.lib.nixosSystem rec {
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config = nixpkgs-config;
|
||||
overlays = [ (import ./packages) ];
|
||||
};
|
||||
specialArgs = inputs // { inherit secrets; };
|
||||
pkgs = packages system;
|
||||
specialArgs = inputs // { inherit secrets; extra-packages = (extra-packages system); };
|
||||
modules = [
|
||||
{
|
||||
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
|
||||
|
@ -64,7 +64,7 @@
|
|||
home-manager = {
|
||||
useUserPackages = true;
|
||||
useGlobalPkgs = true;
|
||||
extraSpecialArgs = inputs // { inherit secrets; };
|
||||
extraSpecialArgs = inputs // { inherit secrets; extra-packages = (extra-packages system); };
|
||||
users.${secrets.users.primary.userName} = _: {
|
||||
imports = [
|
||||
impermanence.nixosModules.home-manager.impermanence
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
{ pkgs
|
||||
, extra-packages
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
gtkTheme = {
|
||||
name = "Dracula";
|
||||
package = pkgs.dracula-gtk;
|
||||
package = extra-packages.dracula-gtk;
|
||||
};
|
||||
|
||||
iconTheme = {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ pkgs, ... }:
|
||||
{ extra-packages, ... }:
|
||||
let
|
||||
change-wallpaper = "${pkgs.setpaper}/bin/setpaper";
|
||||
wallpaper-downloader = "${pkgs.getpaper}/bin/getpaper";
|
||||
change-wallpaper = "${extra-packages.setpaper}/bin/setpaper";
|
||||
wallpaper-downloader = "${extra-packages.getpaper}/bin/getpaper";
|
||||
in
|
||||
{
|
||||
systemd.user = {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{ config
|
||||
, pkgs
|
||||
, extra-packages
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
|
@ -168,10 +169,10 @@ in
|
|||
"SUPER,i, exec, ${firefox}"
|
||||
"SUPER_SHIFT,i, exec, ${librewolf}"
|
||||
|
||||
"SUPER_SHIFT,escape, exec, ${pkgs.misc-scripts}/bin/power-menu"
|
||||
"SUPER,f11, exec, ${pkgs.misc-scripts}/bin/tmux-sessions"
|
||||
"SUPER_SHIFT,y, exec, ${pkgs.youtube}/bin/youtube"
|
||||
"SUPER_SHIFT,b, exec, ${pkgs.rofi-bluetooth}/bin/rofi-bluetooth"
|
||||
"SUPER_SHIFT,escape, exec, ${extra-packages.misc-scripts}/bin/power-menu"
|
||||
"SUPER,f11, exec, ${extra-packages.misc-scripts}/bin/tmux-sessions"
|
||||
"SUPER_SHIFT,y, exec, ${extra-packages.youtube}/bin/youtube"
|
||||
"SUPER_SHIFT,b, exec, ${extra-packages.rofi-bluetooth}/bin/rofi-bluetooth"
|
||||
|
||||
"SUPER,escape, exec, ${loginctl} lock-session"
|
||||
"SUPER_SHIFT,W, exec, systemctl --user start wallpaper.service"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }: {
|
||||
{ pkgs, extra-packages, ... }: {
|
||||
imports = [
|
||||
./hardware
|
||||
./programs
|
||||
|
@ -21,15 +21,14 @@
|
|||
|
||||
fonts = {
|
||||
fontDir.enable = true;
|
||||
packages = with pkgs; [
|
||||
packages = (with pkgs; [
|
||||
cantarell-fonts
|
||||
liberation_ttf
|
||||
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
||||
noto-fonts
|
||||
noto-fonts-cjk
|
||||
noto-fonts-emoji
|
||||
smc-manjari
|
||||
];
|
||||
]) ++ [ extra-packages.smc-manjari ];
|
||||
};
|
||||
|
||||
gtk.iconCache.enable = true;
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
final: prev: {
|
||||
dracula-gtk = prev.callPackage ./dracula-gtk { };
|
||||
misc-scripts = prev.callPackage ./scripts/misc { };
|
||||
getpaper = prev.callPackage ./scripts/getpaper { };
|
||||
setpaper = prev.callPackage ./scripts/setpaper { };
|
||||
youtube = prev.callPackage ./scripts/youtube { };
|
||||
rofi-bluetooth = prev.callPackage ./rofi-bluetooth { };
|
||||
smc-manjari = prev.callPackage ./smc-manjari { };
|
||||
smc-nupuram = prev.callPackage ./smc-nupuram { };
|
||||
}
|
Loading…
Reference in a new issue