Use home-manager.useGlobalPkgs

This commit is contained in:
Erwin Boskma 2023-05-23 17:10:45 +02:00
parent 7491646130
commit fa849e1bd5
Signed by: erwin
SSH key fingerprint: SHA256:3F6Cm6I3erRqlBwEghZWAQl6eS5WrGTX1Vs/Evec1lQ
2 changed files with 7 additions and 19 deletions

View file

@ -160,7 +160,12 @@
baseConfig baseConfig
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ home-manager.useUserPackages = true; } {
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
};
}
]; ];
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev; system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;

View file

@ -1,4 +1,4 @@
{ pkgs, config, lib, inputs, self-overlay, ... }: { pkgs, config, lib, inputs, ... }:
with lib; with lib;
let let
cfg = config.eboskma.users.erwin; cfg = config.eboskma.users.erwin;
@ -33,8 +33,6 @@ in
EDITOR = "${config.home-manager.users.erwin.eboskma.programs.emacs.package}/bin/emacsclient -c"; EDITOR = "${config.home-manager.users.erwin.eboskma.programs.emacs.package}/bin/emacsclient -c";
}; };
nixpkgs.config.allowUnfree = true;
eboskma = { eboskma = {
var.workSystem = true; var.workSystem = true;
programs = { programs = {
@ -125,13 +123,6 @@ in
}; };
}; };
# home.keyboard = {
# layout = "us,us";
# variant = "colemak,";
# model = "pc105";
# options = [ "ctrl:nocaps" "eurosign:5" "lv5:ralt_switch" "lv3:rwin_switch" "grp:sclk_toggle" "grp_led:scroll" ];
# };
home.packages = with pkgs; [ home.packages = with pkgs; [
atool atool
bitwarden bitwarden
@ -239,14 +230,6 @@ in
}; };
imports = [ imports = [
{
nixpkgs.overlays = [
self-overlay
inputs.ha-now-playing.overlays.${pkgs.system}
inputs.pamedia.overlays.${pkgs.system}
inputs.emacs-overlay.overlay
];
}
../../modules/options ../../modules/options
] ++ (map (mod: (../../home-manager/modules + "/${mod}")) (builtins.attrNames (builtins.readDir ../../home-manager/modules))); ] ++ (map (mod: (../../home-manager/modules + "/${mod}")) (builtins.attrNames (builtins.readDir ../../home-manager/modules)));