make config work on macos
This commit is contained in:
parent
ed5b2071c5
commit
5acef4760c
6 changed files with 51 additions and 61 deletions
|
@ -109,7 +109,6 @@
|
||||||
"Natalies-MacBook-Air" = darwin.lib.darwinSystem {
|
"Natalies-MacBook-Air" = darwin.lib.darwinSystem {
|
||||||
system = "aarch64-darwin";
|
system = "aarch64-darwin";
|
||||||
modules = [
|
modules = [
|
||||||
# nh_darwin.nixDarwinModules.default
|
|
||||||
{nixpkgs.overlays = overlays;}
|
{nixpkgs.overlays = overlays;}
|
||||||
./hosts/laptop/configuration.nix
|
./hosts/laptop/configuration.nix
|
||||||
home-manager.darwinModules.home-manager
|
home-manager.darwinModules.home-manager
|
||||||
|
@ -126,17 +125,9 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit nh_darwin;
|
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# darwinPackages = self.darwinConfigurations."Natalie-MacBook-Air".pkgs;
|
|
||||||
# nixos = inputs.self.nixosConfigurations.nmarks;
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# nmarks = inputs.self.nixosConfigurations.nmarks.config.system.build.toplevel;
|
|
||||||
# defaultPackage.x86_64-linux = inputs.self.nixosConfigurations.laptoptop.config.system.build.toplevel;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -276,6 +276,8 @@
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
firefox
|
firefox
|
||||||
vim
|
vim
|
||||||
|
steam
|
||||||
|
|
||||||
# thunderbird
|
# thunderbird
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -26,6 +26,38 @@ in {
|
||||||
shared-packages = import ../shared/packages.nix {inherit pkgs;};
|
shared-packages = import ../shared/packages.nix {inherit pkgs;};
|
||||||
in
|
in
|
||||||
shared-packages
|
shared-packages
|
||||||
|
++ [
|
||||||
|
#building macos apps hard :(
|
||||||
|
ghostty
|
||||||
|
stremio
|
||||||
|
julia
|
||||||
|
|
||||||
|
#gaming
|
||||||
|
bottles
|
||||||
|
lutris
|
||||||
|
mangohud
|
||||||
|
dxvk_2
|
||||||
|
steam-run
|
||||||
|
vulkan-tools
|
||||||
|
path-of-building
|
||||||
|
wineWowPackages.stable
|
||||||
|
winetricks
|
||||||
|
|
||||||
|
#window manager stuff
|
||||||
|
wofi
|
||||||
|
#linux tools
|
||||||
|
legcord
|
||||||
|
pavucontrol
|
||||||
|
ethtool
|
||||||
|
grub2
|
||||||
|
efibootmgr
|
||||||
|
distrobox
|
||||||
|
xdg-desktop-portal-gtk
|
||||||
|
xclip
|
||||||
|
kdePackages.dolphin
|
||||||
|
#broken on macos
|
||||||
|
calibre
|
||||||
|
]
|
||||||
++ [
|
++ [
|
||||||
zls.packages.x86_64-linux.zls
|
zls.packages.x86_64-linux.zls
|
||||||
rust-bin.stable.latest.default
|
rust-bin.stable.latest.default
|
||||||
|
@ -43,5 +75,4 @@ in {
|
||||||
programs = shared-programs;
|
programs = shared-programs;
|
||||||
|
|
||||||
xdg.mimeApps.defaultApplications."inode/directory" = "dolphin.desktop";
|
xdg.mimeApps.defaultApplications."inode/directory" = "dolphin.desktop";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,23 +3,13 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
# nixpkgs.overlays = [
|
|
||||||
# (final: prev: {nh-darwin = nh_darwin.packages.${prev.system}.default;})
|
|
||||||
# ];
|
|
||||||
# environment.shellAliases.nh = "nh_darwin";
|
|
||||||
|
|
||||||
# programs.nh = {
|
|
||||||
# enable = true;
|
|
||||||
# clean.enable = true;
|
|
||||||
# clean.extraArgs = "--keep-since 4d --keep 3";
|
|
||||||
# flake = "/Users/nmarks/.dotfiles";
|
|
||||||
# };
|
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.home-manager
|
pkgs.home-manager
|
||||||
pkgs.neovim
|
pkgs.neovim
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
# Use a custom configuration.nix location.
|
# Use a custom configuration.nix location.
|
||||||
#environment.darwinConfig = "$HOME/.dotfiles/hosts/laptop";
|
#environment.darwinConfig = "$HOME/.dotfiles/hosts/laptop";
|
||||||
|
|
||||||
|
@ -31,8 +21,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
# Create /etc/zshrc that loads the nix-darwin environment.
|
# Create /etc/zshrc that loads the nix-darwin environment.
|
||||||
programs = {
|
programs = {
|
||||||
gnupg.agent.enable = true;
|
gnupg.agent.enable = true;
|
||||||
|
@ -51,7 +39,7 @@
|
||||||
|
|
||||||
# Used for backwards compatibility, please read the changelog before changing.
|
# Used for backwards compatibility, please read the changelog before changing.
|
||||||
# $ darwin-rebuild changelog
|
# $ darwin-rebuild changelog
|
||||||
system.stateVersion = 4;
|
system.stateVersion = 6;
|
||||||
|
|
||||||
# Install fonts
|
# Install fonts
|
||||||
fonts.packages = [
|
fonts.packages = [
|
||||||
|
@ -87,6 +75,7 @@
|
||||||
"battle-net"
|
"battle-net"
|
||||||
"stremio"
|
"stremio"
|
||||||
"alt-tab"
|
"alt-tab"
|
||||||
|
"legcord"
|
||||||
];
|
];
|
||||||
|
|
||||||
masApps = {
|
masApps = {
|
||||||
|
@ -94,6 +83,12 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
security.pam.services.sudo_local = {
|
||||||
|
enable = true;
|
||||||
|
reattach = true;
|
||||||
|
touchIdAuth = true;
|
||||||
|
};
|
||||||
|
|
||||||
# set some OSX preferences that I always end up hunting down and changing.
|
# set some OSX preferences that I always end up hunting down and changing.
|
||||||
system.defaults = {
|
system.defaults = {
|
||||||
# minimal dock
|
# minimal dock
|
||||||
|
|
|
@ -18,10 +18,6 @@
|
||||||
# release notes.
|
# release notes.
|
||||||
home.stateVersion = "23.05"; # Please read the comment before changing.
|
home.stateVersion = "23.05"; # Please read the comment before changing.
|
||||||
|
|
||||||
nixpkgs.config = {
|
|
||||||
allowUnfree = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = pkgs.callPackage ../shared/packages.nix {};
|
home.packages = pkgs.callPackage ../shared/packages.nix {};
|
||||||
|
|
||||||
programs = import ../shared/home-programs.nix {inherit config pkgs lib;};
|
programs = import ../shared/home-programs.nix {inherit config pkgs lib;};
|
||||||
|
|
|
@ -13,22 +13,25 @@ with pkgs; [
|
||||||
unzip
|
unzip
|
||||||
clang
|
clang
|
||||||
|
|
||||||
|
#virtualization
|
||||||
|
qemu
|
||||||
|
podman
|
||||||
|
docker
|
||||||
|
|
||||||
#productivity
|
#productivity
|
||||||
glance
|
glance
|
||||||
wofi
|
|
||||||
anki-bin
|
anki-bin
|
||||||
tailscale
|
tailscale
|
||||||
|
openconnect
|
||||||
|
wireguard-tools
|
||||||
|
|
||||||
#nix tools
|
#nix tools
|
||||||
cachix
|
cachix
|
||||||
direnv
|
direnv
|
||||||
comma
|
comma
|
||||||
nh
|
nh
|
||||||
podman
|
|
||||||
docker
|
|
||||||
|
|
||||||
#terminal stuff
|
#terminal stuff
|
||||||
ghostty
|
|
||||||
(btop.override {cudaSupport = true;})
|
(btop.override {cudaSupport = true;})
|
||||||
tmux
|
tmux
|
||||||
zellij
|
zellij
|
||||||
|
@ -45,25 +48,11 @@ with pkgs; [
|
||||||
ripgrep
|
ripgrep
|
||||||
file
|
file
|
||||||
fish
|
fish
|
||||||
ethtool
|
|
||||||
|
|
||||||
#linux tools
|
|
||||||
pavucontrol
|
|
||||||
grub2
|
|
||||||
efibootmgr
|
|
||||||
distrobox
|
|
||||||
qemu
|
|
||||||
openconnect
|
|
||||||
wireguard-tools
|
|
||||||
xdg-desktop-portal-gtk
|
|
||||||
xclip
|
|
||||||
|
|
||||||
#image tools
|
#image tools
|
||||||
imagemagick
|
imagemagick
|
||||||
|
|
||||||
#chatting apps
|
#chatting apps
|
||||||
legcord
|
|
||||||
webcord
|
|
||||||
(discord.override {
|
(discord.override {
|
||||||
withMoonlight = true;
|
withMoonlight = true;
|
||||||
})
|
})
|
||||||
|
@ -71,10 +60,7 @@ with pkgs; [
|
||||||
signal-desktop
|
signal-desktop
|
||||||
|
|
||||||
#media
|
#media
|
||||||
calibre
|
|
||||||
kdePackages.dolphin
|
|
||||||
spotify
|
spotify
|
||||||
stremio
|
|
||||||
qbittorrent
|
qbittorrent
|
||||||
mpv
|
mpv
|
||||||
|
|
||||||
|
@ -108,22 +94,11 @@ with pkgs; [
|
||||||
R
|
R
|
||||||
deno
|
deno
|
||||||
ruby
|
ruby
|
||||||
julia
|
|
||||||
nodePackages.npm
|
nodePackages.npm
|
||||||
go
|
go
|
||||||
|
|
||||||
#gaming
|
#gaming
|
||||||
steam
|
|
||||||
bottles
|
|
||||||
path-of-building
|
|
||||||
lutris
|
|
||||||
wineWowPackages.stable
|
|
||||||
winetricks
|
|
||||||
dxvk_2
|
|
||||||
mangohud
|
|
||||||
vulkan-tools
|
|
||||||
prismlauncher
|
prismlauncher
|
||||||
steam-run
|
|
||||||
|
|
||||||
#browsers
|
#browsers
|
||||||
tor
|
tor
|
||||||
|
|
Loading…
Reference in a new issue