authorgravatar for nmarks413@gmail.comNatalie Marks <nmarks413@gmail.com> 2025-03-31 13:37:38-07:00
committergravatar for nmarks413@gmail.comNatalie Marks <nmarks413@gmail.com> 2025-03-31 13:37:38-07:00
log5acef4760cae0a774402dc072aa84e185485a3a4
treeeb5d4028d7c2976fe8c048f5d01b9bef5feda5f6
parented5b2071c511c94bb19616aecc043345621f918b

make config work on macos


6 files changed, 51 insertions(+), 61 deletions(-)

flake.nix-9
......@@ -109,7 +109,6 @@
109109 "Natalies-MacBook-Air" = darwin.lib.darwinSystem {
110110 system = "aarch64-darwin";
111111 modules = [
112 # nh_darwin.nixDarwinModules.default
113112 {nixpkgs.overlays = overlays;}
114113 ./hosts/laptop/configuration.nix
115114 home-manager.darwinModules.home-manager
......@@ -126,17 +125,9 @@
126125 }
127126 ];
128127 specialArgs = {
129 inherit nh_darwin;
130128 inherit inputs;
131129 };
132130 };
133131 };
134
135 # darwinPackages = self.darwinConfigurations."Natalie-MacBook-Air".pkgs;
136 # nixos = inputs.self.nixosConfigurations.nmarks;
137 #
138 #
139 # nmarks = inputs.self.nixosConfigurations.nmarks.config.system.build.toplevel;
140 # defaultPackage.x86_64-linux = inputs.self.nixosConfigurations.laptoptop.config.system.build.toplevel;
141132 };
142133}
hosts/desktop/configuration.nix+2
......@@ -276,6 +276,8 @@
276276 packages = with pkgs; [
277277 firefox
278278 vim
279 steam
280
279281 # thunderbird
280282 ];
281283 };
hosts/desktop/home.nix+32-1
......@@ -26,6 +26,38 @@ in {
2626 shared-packages = import ../shared/packages.nix {inherit pkgs;};
2727 in
2828 shared-packages
29 ++ [
30 #building macos apps hard :(
31 ghostty
32 stremio
33 julia
34
35 #gaming
36 bottles
37 lutris
38 mangohud
39 dxvk_2
40 steam-run
41 vulkan-tools
42 path-of-building
43 wineWowPackages.stable
44 winetricks
45
46 #window manager stuff
47 wofi
48 #linux tools
49 legcord
50 pavucontrol
51 ethtool
52 grub2
53 efibootmgr
54 distrobox
55 xdg-desktop-portal-gtk
56 xclip
57 kdePackages.dolphin
58 #broken on macos
59 calibre
60 ]
2961 ++ [
3062 zls.packages.x86_64-linux.zls
3163 rust-bin.stable.latest.default
......@@ -43,5 +75,4 @@ in {
4375 programs = shared-programs;
4476
4577 xdg.mimeApps.defaultApplications."inode/directory" = "dolphin.desktop";
46
4778}
hosts/laptop/configuration.nix+10-15
......@@ -3,23 +3,13 @@
33 pkgs,
44 ...
55}: {
6 # nixpkgs.overlays = [
7 # (final: prev: {nh-darwin = nh_darwin.packages.${prev.system}.default;})
8 # ];
9 # environment.shellAliases.nh = "nh_darwin";
10
11 # programs.nh = {
12 # enable = true;
13 # clean.enable = true;
14 # clean.extraArgs = "--keep-since 4d --keep 3";
15 # flake = "/Users/nmarks/.dotfiles";
16 # };
17
186 environment.systemPackages = [
197 pkgs.home-manager
208 pkgs.neovim
219 ];
2210
11 nixpkgs.config.allowUnfree = true;
12
2313 # Use a custom configuration.nix location.
2414 #environment.darwinConfig = "$HOME/.dotfiles/hosts/laptop";
2515
......@@ -31,8 +21,6 @@
3121 };
3222 };
3323
34 nixpkgs.config.allowUnfree = true;
35
3624 # Create /etc/zshrc that loads the nix-darwin environment.
3725 programs = {
3826 gnupg.agent.enable = true;
......@@ -51,7 +39,7 @@
5139
5240 # Used for backwards compatibility, please read the changelog before changing.
5341 # $ darwin-rebuild changelog
54 system.stateVersion = 4;
42 system.stateVersion = 6;
5543
5644 # Install fonts
5745 fonts.packages = [
......@@ -87,6 +75,7 @@
8775 "battle-net"
8876 "stremio"
8977 "alt-tab"
78 "legcord"
9079 ];
9180
9281 masApps = {
......@@ -94,6 +83,12 @@
9483 };
9584 };
9685
86 security.pam.services.sudo_local = {
87 enable = true;
88 reattach = true;
89 touchIdAuth = true;
90 };
91
9792 # set some OSX preferences that I always end up hunting down and changing.
9893 system.defaults = {
9994 # minimal dock
hosts/laptop/home.nix-4
......@@ -18,10 +18,6 @@
1818 # release notes.
1919 home.stateVersion = "23.05"; # Please read the comment before changing.
2020
21 nixpkgs.config = {
22 allowUnfree = true;
23 };
24
2521 home.packages = pkgs.callPackage ../shared/packages.nix {};
2622
2723 programs = import ../shared/home-programs.nix {inherit config pkgs lib;};
hosts/shared/packages.nix+7-32
......@@ -13,22 +13,25 @@ with pkgs; [
1313 unzip
1414 clang
1515
16 #virtualization
17 qemu
18 podman
19 docker
20
1621 #productivity
1722 glance
18 wofi
1923 anki-bin
2024 tailscale
25 openconnect
26 wireguard-tools
2127
2228 #nix tools
2329 cachix
2430 direnv
2531 comma
2632 nh
27 podman
28 docker
2933
3034 #terminal stuff
31 ghostty
3235 (btop.override {cudaSupport = true;})
3336 tmux
3437 zellij
......@@ -45,25 +48,11 @@ with pkgs; [
4548 ripgrep
4649 file
4750 fish
48 ethtool
49
50 #linux tools
51 pavucontrol
52 grub2
53 efibootmgr
54 distrobox
55 qemu
56 openconnect
57 wireguard-tools
58 xdg-desktop-portal-gtk
59 xclip
6051
6152 #image tools
6253 imagemagick
6354
6455 #chatting apps
65 legcord
66 webcord
6756 (discord.override {
6857 withMoonlight = true;
6958 })
......@@ -71,10 +60,7 @@ with pkgs; [
7160 signal-desktop
7261
7362 #media
74 calibre
75 kdePackages.dolphin
7663 spotify
77 stremio
7864 qbittorrent
7965 mpv
8066
......@@ -108,22 +94,11 @@ with pkgs; [
10894 R
10995 deno
11096 ruby
111 julia
11297 nodePackages.npm
11398 go
11499
115100 #gaming
116 steam
117 bottles
118 path-of-building
119 lutris
120 wineWowPackages.stable
121 winetricks
122 dxvk_2
123 mangohud
124 vulkan-tools
125101 prismlauncher
126 steam-run
127102
128103 #browsers
129104 tor