Skip to content

Commit aefa651

Browse files
committed
general cleaning
1 parent e11016b commit aefa651

File tree

12 files changed

+83
-59
lines changed

12 files changed

+83
-59
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@
55
Install nix with the [DeterminateSystems nix-installer](https://github.com/DeterminateSystems/nix-installer)
66

77
```shell
8-
nix-installer plan macos --case-sensitive --extra-conf "use-case-hack = false" --encrypt true > plan.json
9-
nix-installer install plan.json
8+
curl -sL -o nix-installer https://install.determinate.systems/nix/nix-installer-aarch64-darwin
9+
chmod +x nix-installer
10+
./nix-installer plan macos --case-sensitive --extra-conf "use-case-hack = false" --encrypt true > plan.json
11+
./nix-installer install plan.json
12+
```
13+
14+
For macos defaults to work, you need to [grant full disk access to the terminal](https://www.alfredapp.com/help/troubleshooting/indexing/terminal-full-disk-access/).
1015

16+
```shell
1117
sudo mv /etc/nix/nix.conf{,.before-nix-darwin}
1218
nix --extra-experimental-features 'flakes nix-command' run nix-darwin -- switch --flake .
1319
```

darwin-modules/homebrew-packages/common.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
"telegram"
1414
"visual-studio-code"
1515
"vlc"
16-
"vmware-fusion"
1716
"wezterm"
18-
"logseq"
1917
];
2018
};
2119
}

darwin-modules/homebrew-packages/work.nix

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,11 @@
66
"cyberduck"
77
"datagrip"
88
"docker"
9-
"goland"
109
"google-cloud-sdk"
1110
"intellij-idea"
12-
"intune-company-portal"
1311
"microsoft-teams"
14-
"tunnelblick"
12+
"microsoft-office"
1513
"postman"
16-
"dbvisualizer"
17-
"activitywatch"
1814
"wireshark"
1915
];
2016

darwin-modules/nix.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
nixpkgs.config.allowUnfree = true;
55

66
nix = {
7-
# package = pkgs.nixVersions.nix_2_23;
87
extraOptions = ''
98
extra-experimental-features = nix-command flakes
109
use-case-hack = false

darwin-modules/security.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
security.pam.enableSudoTouchIdAuth = true;
2+
security.pam.services.sudo_local = {
3+
enable = true;
4+
touchIdAuth = true;
5+
watchIdAuth = true;
6+
};
37
}

flake.lock

Lines changed: 59 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
inputs.nix-darwin.follows = "nix-darwin";
3131
inputs.nixpkgs.follows = "nixpkgs-darwin";
3232
};
33+
krewfile.url = "github:brumhard/krewfile";
34+
krewfile.inputs.nixpkgs.follows = "nixpkgs";
3335

3436
flake-parts.url = "github:hercules-ci/flake-parts";
3537
ez-configs = {
@@ -76,7 +78,6 @@
7678
starbuck.userHomeModules = [ "peteresselius" ];
7779
};
7880
};
79-
8081
dev.enable = true;
8182
};
8283
}

home-modules/profiles/tools/work.nix

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
{ lib, pkgs, config, ... }:
1+
{ inputs, lib, pkgs, config, ... }:
22

33
let
44
cfg = config.profiles.tools;
55
inherit (lib) mkMerge mkIf;
66
in
77
{
8+
imports = [ inputs.krewfile.homeManagerModules.krewfile ];
89
options.profiles.tools = {
910
asdf = lib.mkEnableOption "Install asdf";
1011
k8s = lib.mkEnableOption "Install k8s packages & set shell config";
@@ -47,16 +48,16 @@ in
4748

4849
home.packages = with pkgs; [
4950
k9s
50-
krew
5151
minio-client
5252
sqlfluff
5353
stern
5454
kubectl
5555
];
5656

57-
home.sessionPath = [
58-
"$HOME/.krew/bin"
59-
];
57+
programs.krewfile = {
58+
enable = true;
59+
plugins = [ "oidc-login" ];
60+
};
6061
})
6162

6263
(mkIf cfg.minio {

home-modules/terminal.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
1414
config.window_decorations = 'RESIZE'
1515
16+
config.font = wezterm.font("JetBrains Mono")
17+
1618
return config
1719
'';
1820
};

nixos-modules/hardware-vm.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
fsType = "fuse./run/current-system/sw/bin/vmhgfs-fuse";
3232
device = ".host:/";
3333
options = [
34-
# "umask=27"
3534
"uid=1000"
3635
"gid=1000"
3736
"allow_other"

0 commit comments

Comments
 (0)