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 { };
|
||||||
|
}
|
16
flake.nix
16
flake.nix
|
@ -34,20 +34,20 @@
|
||||||
} @ inputs:
|
} @ inputs:
|
||||||
let
|
let
|
||||||
secrets = import ./secrets.nix;
|
secrets = import ./secrets.nix;
|
||||||
nixpkgs-config = {
|
packages = system: import nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
extra-packages = system: import ./extra-packages (packages system);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
Skipper = nixpkgs.lib.nixosSystem rec {
|
Skipper = nixpkgs.lib.nixosSystem rec {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs {
|
pkgs = packages system;
|
||||||
inherit system;
|
specialArgs = inputs // { inherit secrets; extra-packages = (extra-packages system); };
|
||||||
config = nixpkgs-config;
|
|
||||||
overlays = [ (import ./packages) ];
|
|
||||||
};
|
|
||||||
specialArgs = inputs // { inherit secrets; };
|
|
||||||
modules = [
|
modules = [
|
||||||
{
|
{
|
||||||
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
|
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
|
||||||
|
@ -64,7 +64,7 @@
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
extraSpecialArgs = inputs // { inherit secrets; };
|
extraSpecialArgs = inputs // { inherit secrets; extra-packages = (extra-packages system); };
|
||||||
users.${secrets.users.primary.userName} = _: {
|
users.${secrets.users.primary.userName} = _: {
|
||||||
imports = [
|
imports = [
|
||||||
impermanence.nixosModules.home-manager.impermanence
|
impermanence.nixosModules.home-manager.impermanence
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
{ pkgs
|
{ pkgs
|
||||||
|
, extra-packages
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
gtkTheme = {
|
gtkTheme = {
|
||||||
name = "Dracula";
|
name = "Dracula";
|
||||||
package = pkgs.dracula-gtk;
|
package = extra-packages.dracula-gtk;
|
||||||
};
|
};
|
||||||
|
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ pkgs, ... }:
|
{ extra-packages, ... }:
|
||||||
let
|
let
|
||||||
change-wallpaper = "${pkgs.setpaper}/bin/setpaper";
|
change-wallpaper = "${extra-packages.setpaper}/bin/setpaper";
|
||||||
wallpaper-downloader = "${pkgs.getpaper}/bin/getpaper";
|
wallpaper-downloader = "${extra-packages.getpaper}/bin/getpaper";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
systemd.user = {
|
systemd.user = {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{ config
|
{ config
|
||||||
, pkgs
|
, pkgs
|
||||||
|
, extra-packages
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
@ -168,10 +169,10 @@ in
|
||||||
"SUPER,i, exec, ${firefox}"
|
"SUPER,i, exec, ${firefox}"
|
||||||
"SUPER_SHIFT,i, exec, ${librewolf}"
|
"SUPER_SHIFT,i, exec, ${librewolf}"
|
||||||
|
|
||||||
"SUPER_SHIFT,escape, exec, ${pkgs.misc-scripts}/bin/power-menu"
|
"SUPER_SHIFT,escape, exec, ${extra-packages.misc-scripts}/bin/power-menu"
|
||||||
"SUPER,f11, exec, ${pkgs.misc-scripts}/bin/tmux-sessions"
|
"SUPER,f11, exec, ${extra-packages.misc-scripts}/bin/tmux-sessions"
|
||||||
"SUPER_SHIFT,y, exec, ${pkgs.youtube}/bin/youtube"
|
"SUPER_SHIFT,y, exec, ${extra-packages.youtube}/bin/youtube"
|
||||||
"SUPER_SHIFT,b, exec, ${pkgs.rofi-bluetooth}/bin/rofi-bluetooth"
|
"SUPER_SHIFT,b, exec, ${extra-packages.rofi-bluetooth}/bin/rofi-bluetooth"
|
||||||
|
|
||||||
"SUPER,escape, exec, ${loginctl} lock-session"
|
"SUPER,escape, exec, ${loginctl} lock-session"
|
||||||
"SUPER_SHIFT,W, exec, systemctl --user start wallpaper.service"
|
"SUPER_SHIFT,W, exec, systemctl --user start wallpaper.service"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, extra-packages, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware
|
./hardware
|
||||||
./programs
|
./programs
|
||||||
|
@ -21,15 +21,14 @@
|
||||||
|
|
||||||
fonts = {
|
fonts = {
|
||||||
fontDir.enable = true;
|
fontDir.enable = true;
|
||||||
packages = with pkgs; [
|
packages = (with pkgs; [
|
||||||
cantarell-fonts
|
cantarell-fonts
|
||||||
liberation_ttf
|
liberation_ttf
|
||||||
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
||||||
noto-fonts
|
noto-fonts
|
||||||
noto-fonts-cjk
|
noto-fonts-cjk
|
||||||
noto-fonts-emoji
|
noto-fonts-emoji
|
||||||
smc-manjari
|
]) ++ [ extra-packages.smc-manjari ];
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
gtk.iconCache.enable = true;
|
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