Fixed Darwin Configs
This commit is contained in:
@@ -1,32 +1,25 @@
|
|||||||
{ pkgs, inputs, lib, system, ... }:
|
{ pkgs, inputs, ... }: {
|
||||||
let isDarwin = builtins.match ".*-darwin" system != null;
|
imports = [
|
||||||
in {
|
inputs.catppuccin.homeModules.catppuccin
|
||||||
imports = [ inputs.catppuccin.homeModules.catppuccin ]
|
./hyprland
|
||||||
++ lib.optionals (!isDarwin) [
|
./rofi
|
||||||
./hyprland
|
./waybar
|
||||||
./rofi
|
./gtk.nix
|
||||||
./waybar
|
./qt.nix
|
||||||
./gtk.nix
|
];
|
||||||
./qt.nix
|
|
||||||
] ++ lib.optionals isDarwin [ ./sketchybar.nix ];
|
|
||||||
|
|
||||||
_module.args.compositor = if isDarwin then "quartz" else "hyprland";
|
_module.args.compositor = "hyprland";
|
||||||
|
|
||||||
home = lib.mkIf (!isDarwin) {
|
home.packages = with pkgs; [ waypaper awww ];
|
||||||
packages = with pkgs; [ waypaper awww ];
|
home.file.".config/waypaper/config.ini".source = ./waypaper.ini;
|
||||||
file.".config/waypaper/config.ini".source = ./waypaper.ini;
|
|
||||||
};
|
|
||||||
|
|
||||||
# TODO: Qutebrowser install
|
programs = {
|
||||||
programs = lib.mkIf (!isDarwin) {
|
|
||||||
mangohud = {
|
mangohud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
position = "top-right";
|
position = "top-right";
|
||||||
|
|
||||||
offset_x = 20;
|
offset_x = 20;
|
||||||
offset_y = 20;
|
offset_y = 20;
|
||||||
|
|
||||||
fps = true;
|
fps = true;
|
||||||
cpu_stats = true;
|
cpu_stats = true;
|
||||||
gpu_stats = true;
|
gpu_stats = true;
|
||||||
@@ -34,15 +27,9 @@ in {
|
|||||||
gpu_temp = true;
|
gpu_temp = true;
|
||||||
ram = true;
|
ram = true;
|
||||||
vram = true;
|
vram = true;
|
||||||
|
|
||||||
background_alpha = 0.5;
|
background_alpha = 0.5;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
mpv.enable = true;
|
||||||
# TODO: Needs config!
|
|
||||||
mpv = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ inputs, pkgs, lib, ... }:
|
{ inputs, pkgs, ... }:
|
||||||
let
|
let
|
||||||
super = "SUPER";
|
super = "SUPER";
|
||||||
terminal = "kitty";
|
terminal = "kitty";
|
||||||
@@ -9,7 +9,7 @@ let
|
|||||||
power =
|
power =
|
||||||
"rofi -show p -modi p:rofi-power-menu -theme $HOME/.config/rofi/power.rasi";
|
"rofi -show p -modi p:rofi-power-menu -theme $HOME/.config/rofi/power.rasi";
|
||||||
apps = "rofi -show window ${theme}";
|
apps = "rofi -show window ${theme}";
|
||||||
in lib.mkIf (!pkgs.stdenv.isDarwin) {
|
in {
|
||||||
|
|
||||||
imports = [ ./hypridle.nix ./hyprlock.nix ./mako.nix ./portal.nix ];
|
imports = [ ./hypridle.nix ./hyprlock.nix ./mako.nix ./portal.nix ];
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }: {
|
{ pkgs, isDarwin, lib, ... }: {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
eza # ls replacement
|
eza # ls replacement
|
||||||
tdf # terminal pdf viewer
|
tdf # terminal pdf viewer
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
programs.newsboat = {
|
programs.newsboat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoReload = true;
|
autoReload = true;
|
||||||
browser = if pkgs.stdenv.isDarwin then "open" else "xdg-open";
|
browser = if isDarwin then "open" else "xdg-open";
|
||||||
urls = [
|
urls = [
|
||||||
{
|
{
|
||||||
url = "https://www.tagesschau.de/xml/rss2";
|
url = "https://www.tagesschau.de/xml/rss2";
|
||||||
@@ -171,10 +171,15 @@
|
|||||||
cat = "bat --color=always --style=numbers";
|
cat = "bat --color=always --style=numbers";
|
||||||
grep = "rg";
|
grep = "rg";
|
||||||
cp = "rsync -ah --progress";
|
cp = "rsync -ah --progress";
|
||||||
nix-switch = if pkgs.stdenv.isDarwin then
|
nix-switch = if isDarwin then
|
||||||
"sudo darwin-rebuild switch --flake ~/.config/nix#(hostname -s)"
|
"sudo darwin-rebuild switch --flake ~/.config/nix#(hostname -s)"
|
||||||
else
|
else
|
||||||
"sudo nixos-rebuild switch --flake ~/.config/nix#(hostname -s)";
|
"sudo nixos-rebuild switch --flake ~/.config/nix#(hostname -s)";
|
||||||
|
|
||||||
|
nix-check = if isDarwin then
|
||||||
|
"nix eval ~/.config/nix#darwinConfigurations.(hostname -s).config.system.build.toplevel.outPath"
|
||||||
|
else
|
||||||
|
"nix flake check --no-build ~/.config/nix";
|
||||||
};
|
};
|
||||||
|
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
@@ -266,6 +271,6 @@
|
|||||||
".config/fastfetch/config.jsonc".source = ./fastfetch.jsonc;
|
".config/fastfetch/config.jsonc".source = ./fastfetch.jsonc;
|
||||||
".config/tabiew/theme.toml".source = ./tabiew.toml;
|
".config/tabiew/theme.toml".source = ./tabiew.toml;
|
||||||
".config/kitty/tab_bar.py".source = ./tab_bar.py;
|
".config/kitty/tab_bar.py".source = ./tab_bar.py;
|
||||||
".hushlogin".text = ""; # Suppress login
|
".hushlogin" = lib.mkIf isDarwin { text = ""; }; # Suppress Login
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user