refactor(grfn): Stop importing nixpkgs a bunch of times
Once is enough! <grfn> https://tazj.in/blobs/touch-garbage.jpg Change-Id: I68f66669e82d35a71752638450fa4b820e137172 Signed-Off-By: Florian Klink <flokli@flokli.de> Reviewed-on: https://cl.tvl.fyi/c/depot/+/3048 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
This commit is contained in:
parent
5f19e8e6a7
commit
b75dd136cb
9 changed files with 12 additions and 35 deletions
|
|
@ -21,12 +21,12 @@ rec {
|
|||
"${pkgs.home-manager.src}/nixos"
|
||||
];
|
||||
|
||||
# Use the same nixpkgs as everything else
|
||||
home-manager.useGlobalPkgs = true;
|
||||
|
||||
home-manager.users.grfn = { config, lib, ... }: {
|
||||
imports = [ ../home/machines/roswell.nix ];
|
||||
lib.depot = depot;
|
||||
_module.args.pkgs = lib.mkForce
|
||||
(import pkgs.path
|
||||
(lib.filterAttrs (n: v: v != null) config.nixpkgs));
|
||||
};
|
||||
})).system;
|
||||
|
||||
|
|
|
|||
|
|
@ -56,8 +56,6 @@ with lib;
|
|||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
nix = {
|
||||
trustedUsers = [ "grfn" ];
|
||||
autoOptimiseStore = true;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Enable sound.
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = true;
|
||||
nixpkgs.config.pulseaudio = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
pulseaudio-ctl
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue