Use the correct filter for systems
This commit is contained in:
parent
ece3ec0574
commit
686a2f39e1
|
@ -4,7 +4,7 @@ with lib;
|
||||||
{
|
{
|
||||||
homebrew.enable = true;
|
homebrew.enable = true;
|
||||||
homebrew.brewPrefix =
|
homebrew.brewPrefix =
|
||||||
if pkgs.system == "aarch64-darwin" then "/opt/homebrew/bin"
|
if pkgs.stdenv.isAarch64 then "/opt/homebrew/bin"
|
||||||
else "/usr/local/bin";
|
else "/usr/local/bin";
|
||||||
homebrew.onActivation.cleanup = "zap";
|
homebrew.onActivation.cleanup = "zap";
|
||||||
homebrew.onActivation.upgrade = true;
|
homebrew.onActivation.upgrade = true;
|
||||||
|
|
|
@ -4,7 +4,7 @@ with lib; {
|
||||||
./modules/linux/graphical
|
./modules/linux/graphical
|
||||||
./modules/X11/xfce4-notifyd.nix
|
./modules/X11/xfce4-notifyd.nix
|
||||||
];
|
];
|
||||||
config = (mkIf (strings.hasSuffix "linux" pkgs.system) {
|
config = (mkIf pkgs.stdenv.isLinux {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
psmisc # killall and friends
|
psmisc # killall and friends
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ with lib;
|
||||||
noto-fonts-cjk
|
noto-fonts-cjk
|
||||||
merriweather
|
merriweather
|
||||||
];
|
];
|
||||||
} // (if (strings.hasSuffix "linux" pkgs.system) then {
|
} // (if pkgs.stdenv.isLinux then {
|
||||||
enableDefaultFonts = false;
|
enableDefaultFonts = false;
|
||||||
fontconfig = {
|
fontconfig = {
|
||||||
defaultFonts = {
|
defaultFonts = {
|
||||||
|
@ -23,7 +23,7 @@ with lib;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
fontDir.enable = true;
|
fontDir.enable = true;
|
||||||
} else { }) // (if (strings.hasSuffix "darwin" pkgs.system) then {
|
} else { }) // (if pkgs.stdenv.isDarwin then {
|
||||||
fontDir.enable = true;
|
fontDir.enable = true;
|
||||||
} else { });
|
} else { });
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ in
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
pam_u2f # for pamu2fcfg
|
pam_u2f # for pamu2fcfg
|
||||||
];
|
];
|
||||||
security.pam = mkIf (strings.hasSuffix "linux" pkgs.system) {
|
security.pam = mkIf pkgs.stdenv.isLinux {
|
||||||
u2f = {
|
u2f = {
|
||||||
enable = true;
|
enable = true;
|
||||||
cue = true;
|
cue = true;
|
||||||
|
|
Loading…
Reference in a new issue