1

Compare commits

...

4 Commits

5 changed files with 39 additions and 9 deletions

BIN
Darwin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

View File

@ -3,6 +3,7 @@
Modular NixOS configuration, using [Niri](https://github.com/niri-wm/niri) and [Waybar](https://github.com/Alexays/Waybar) for a light desktop. Modular NixOS configuration, using [Niri](https://github.com/niri-wm/niri) and [Waybar](https://github.com/Alexays/Waybar) for a light desktop.
![](FastFetch.png) ![](FastFetch.png)
![](Darwin.png)
To install, run `nixos-rebuild` with the `--flake` parameter from the `NixFlake` directory: `nixos-rebuild switch --flake .#nixinator`. To install, run `nixos-rebuild` with the `--flake` parameter from the `NixFlake` directory: `nixos-rebuild switch --flake .#nixinator`.
Alternatively, use `nh os switch` or `nh os boot`. Alternatively, use `nh os switch` or `nh os boot`.

View File

@ -55,6 +55,13 @@
homeDirectory = "/Users/${config.home.username}"; homeDirectory = "/Users/${config.home.username}";
enableNixpkgsReleaseCheck = true; enableNixpkgsReleaseCheck = true;
sessionVariables = {
LANG = "en_US.UTF-8";
EDITOR = "nvim";
MANPAGER = "nvim +Man!";
TERMINAL = "kitty";
};
packages = with pkgs; [ packages = with pkgs; [
(ripgrep.override {withPCRE2 = true;}) (ripgrep.override {withPCRE2 = true;})
gdu gdu

View File

@ -45,6 +45,18 @@ in {
programs.fish = lib.mkMerge [ programs.fish = lib.mkMerge [
# Darwin exclusive config # Darwin exclusive config
(lib.mkIf pkgs.stdenv.isDarwin { (lib.mkIf pkgs.stdenv.isDarwin {
shellInit = ''
set fish_greeting
yes | fish_config theme save "system-theme"
set --global --export HOMEBREW_PREFIX "/opt/homebrew"
set --global --export HOMEBREW_CELLAR "/opt/homebrew/Cellar"
set --global --export HOMEBREW_REPOSITORY "/opt/homebrew"
fish_add_path --global --move --path "/opt/homebrew/bin" "/opt/homebrew/sbin"
if test -n "$MANPATH[1]"; set --global --export MANPATH ''' $MANPATH; end;
if not contains "/opt/homebrew/share/info" $INFOPATH; set --global --export INFOPATH "/opt/homebrew/share/info" $INFOPATH; end;
'';
shellAbbrs = let shellAbbrs = let
# These can be used for my config.homemodules and for HM config.programs, # These can be used for my config.homemodules and for HM config.programs,
# as both of these add the package to home.packages # as both of these add the package to home.packages
@ -66,6 +78,11 @@ in {
(lib.mkIf pkgs.stdenv.isLinux { (lib.mkIf pkgs.stdenv.isLinux {
generateCompletions = nixosConfig.programs.fish.generateCompletions; generateCompletions = nixosConfig.programs.fish.generateCompletions;
shellInit = ''
set fish_greeting
yes | fish_config theme save "system-theme"
'';
functions = lib.mergeAttrsList [ functions = lib.mergeAttrsList [
(lib.optionalAttrs config.homemodules.nnn.enable { (lib.optionalAttrs config.homemodules.nnn.enable {
nnncd = { nnncd = {
@ -228,11 +245,6 @@ in {
]; ];
plugins = []; plugins = [];
shellInit = ''
set fish_greeting
yes | fish_config theme save "system-theme"
'';
} }
]; ];

View File

@ -34,7 +34,7 @@
}; };
networking = { networking = {
hostname = "${hostname}"; hostName = "${hostname}";
localHostName = "${hostname}"; localHostName = "${hostname}";
computerName = "${hostname}"; computerName = "${hostname}";
@ -46,6 +46,11 @@
blockAllIncoming = false; blockAllIncoming = false;
}; };
knownNetworkServices = [
"Wi-Fi"
"Thunderbold Bridge"
];
dns = [ dns = [
"192.168.86.26" "192.168.86.26"
"8.8.8.8" "8.8.8.8"
@ -56,8 +61,8 @@
}; };
power = { power = {
restartAfterFreeze = false; # restartAfterFreeze = false;
restartAfterPowerFailure = false; # restartAfterPowerFailure = false;
sleep = { sleep = {
computer = 10; # 10 minutes until sleep computer = 10; # 10 minutes until sleep
@ -67,13 +72,18 @@
}; };
system = { system = {
primaryUser = "${username}";
# TODO: # TODO:
defaults = { defaults = {
# dock = {}; # dock = {};
trackpad = { trackpad = {
ActuateDetents = true; ActuateDetents = true; # Haptic feedback
ActuationStrength = 1; ActuationStrength = 1;
Clicking = true; # Tap to click
Dragging = true; # Double tap to drag
TrackpadRightClick = true;
}; };
}; };