make use of systemPackage

nixos
Moritz Böhme 2022-10-06 20:32:21 +02:00
parent aa42f6678e
commit 85de3b3ac6
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
8 changed files with 97 additions and 103 deletions

View File

@ -85,7 +85,6 @@ with lib; {
thunar.enable = true; thunar.enable = true;
zathura.enable = true; zathura.enable = true;
}; };
services = { services = {
dunst.enable = true; dunst.enable = true;
kdeconnect.enable = true; kdeconnect.enable = true;

View File

@ -80,8 +80,8 @@ in
WantedBy = [ "graphical-session.target" ]; WantedBy = [ "graphical-session.target" ];
}; };
}; };
};
home.packages = with pkgs; [ environment.systemPackages = with pkgs; [
bc # HACK to get bsp-layout to work bc # HACK to get bsp-layout to work
brightnessctl brightnessctl
bsp-layout bsp-layout
@ -91,5 +91,4 @@ in
synology-drive-client synology-drive-client
]; ];
}; };
};
} }

View File

@ -24,15 +24,7 @@ in
emacs = "emacsclient -t -a 'emacs -t'"; emacs = "emacsclient -t -a 'emacs -t'";
}; };
fonts.fonts = [ pkgs.emacs-all-the-icons-fonts ]; fonts.fonts = [ pkgs.emacs-all-the-icons-fonts ];
environment.systemPackages = with pkgs; [
home-manager.users.moritz = {
home.sessionPath = [ "/home/moritz/.config/emacs/bin/" ];
services.emacs = {
enable = true;
package = myEmacs;
};
home.packages = with pkgs; [
### Emacs itself ### Emacs itself
binutils # native-comp needs 'as', provided by this binutils # native-comp needs 'as', provided by this
myEmacs myEmacs
@ -96,6 +88,12 @@ in
xclip xclip
xorg.xprop xorg.xprop
]; ];
home-manager.users.moritz = {
home.sessionPath = [ "/home/moritz/.config/emacs/bin/" ];
services.emacs = {
enable = true;
package = myEmacs;
};
}; };
}; };
} }

View File

@ -25,6 +25,7 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
# set as default shell # set as default shell
users.users.moritz.shell = pkgs.fish; users.users.moritz.shell = pkgs.fish;
environment.systemPackages = with pkgs.fishPlugins; [ fzf-fish pisces ];
# needed for nix completions # needed for nix completions
programs.fish.enable = true; programs.fish.enable = true;
@ -88,7 +89,6 @@ in
fzf.enableFishIntegration = true; fzf.enableFishIntegration = true;
starship.enableFishIntegration = true; starship.enableFishIntegration = true;
}; };
home.packages = with pkgs.fishPlugins; [ fzf-fish pisces ];
}; };
}; };
} }

View File

@ -35,8 +35,7 @@ in
reg = "ledger reg -R -V --tail 15"; reg = "ledger reg -R -V --tail 15";
}; };
}; };
home-manager.users.moritz = { environment.systemPackages = with pkgs; let
home.packages = with pkgs; let
reg-copy = writeShellApplication { reg-copy = writeShellApplication {
name = "reg-copy"; name = "reg-copy";
@ -58,5 +57,4 @@ in
}; };
}; };
}; };
};
} }

View File

@ -52,6 +52,11 @@ in
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
(lib.mkIf config.networking.networkmanager.enable networkmanager_dmenu)
(lib.mkIf config.hardware.bluetooth.enable rofi-bluetooth)
rofi-power-menu
];
home-manager.users.moritz = { home-manager.users.moritz = {
programs.rofi = { programs.rofi = {
enable = true; enable = true;
@ -59,11 +64,6 @@ in
pkgs.rofi.override { plugins = with pkgs; [ rofi-calc rofi-emoji ]; }; pkgs.rofi.override { plugins = with pkgs; [ rofi-calc rofi-emoji ]; };
extraConfig = { combi-modi = "drun,window,emoji"; }; extraConfig = { combi-modi = "drun,window,emoji"; };
}; };
home.packages = with pkgs; [
(lib.mkIf config.networking.networkmanager.enable networkmanager_dmenu)
(lib.mkIf config.hardware.bluetooth.enable rofi-bluetooth)
rofi-power-menu
];
xdg = { xdg = {
enable = true; enable = true;
configFile."networkmanager-dmenu/config.ini".text = '' configFile."networkmanager-dmenu/config.ini".text = ''

View File

@ -22,8 +22,8 @@ in
file = ../../secrets/spotifyd.age; file = ../../secrets/spotifyd.age;
owner = "1000"; owner = "1000";
}; };
environment.systemPackages = with pkgs; [ spotify-tui sptlrx ];
home-manager.users.moritz = { home-manager.users.moritz = {
home.packages = with pkgs; [ spotify-tui sptlrx ];
services.spotifyd = { services.spotifyd = {
enable = true; enable = true;
package = pkgs.spotifyd.override { withMpris = true; }; package = pkgs.spotifyd.override { withMpris = true; };

View File

@ -22,7 +22,7 @@ in
enable = true; enable = true;
package = pkgs.libvirt; package = pkgs.libvirt;
}; };
home-manager.users.moritz.home.packages = with pkgs; [ virt-manager ]; environment.systemPackages = with pkgs; [ virt-manager ];
users.users.moritz.extraGroups = [ "libvirtd" ]; users.users.moritz.extraGroups = [ "libvirtd" ];
}; };
} }