From d77b0a4879f8bbb8101e6e491fd2c7c65a5b2e9a Mon Sep 17 00:00:00 2001 From: Claas Date: Sun, 15 Sep 2024 13:54:26 +0200 Subject: [PATCH] Clean the dirty mess --- brew taps backup | 94 ++++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 14 +++++++- home.nix | 23 +++++++++++- initialize.sh | 4 +++ nix.conf | 1 + 5 files changed, 134 insertions(+), 2 deletions(-) create mode 100644 brew taps backup create mode 100644 initialize.sh create mode 100644 nix.conf diff --git a/brew taps backup b/brew taps backup new file mode 100644 index 0000000..eb22e05 --- /dev/null +++ b/brew taps backup @@ -0,0 +1,94 @@ +abseil +boost +ca-certificates +cairo +cbindgen +cloudflared +cmake +double-conversion +edencommon +fb303 +fbthrift +fish +fizz +fmt +fnm +folly +fontconfig +freetype +gdbm +gettext +gflags +gh +giflib +git +git-lfs +glfw +glib +glog +gradle +graphite2 +harfbuzz +icu4c +ios-deploy +jpeg-turbo +ktlint +libevent +libimobiledevice +libimobiledevice-glue +libplist +libpng +libsodium +libtasn1 +libtiff +libusbmuxd +libuv +libvterm +libx11 +libxau +libxcb +libxdmcp +libxext +libxrender +little-cms2 +llvm +lpeg +luajit +luv +lz4 +lzo +mpdecimal +msgpack +mvfst +ncurses +neovim +openjdk +openssl@1.1 +openssl@3 +pcre2 +pixman +pnpm +probe-rs +protobuf +python@3.10 +python@3.11 +python@3.12 +readline +ripgrep +sdl2 +snappy +sqlcipher +sqld +sqlite +starship +swiftformat +tree-sitter +turso +unibilium +wangle +watchman +xcodegen +xorgproto +xz +z3 +zstd diff --git a/flake.nix b/flake.nix index bb8cefe..0e3d8d3 100644 --- a/flake.nix +++ b/flake.nix @@ -2,7 +2,7 @@ # Use home manager configuration to configure user specific settings { # Documentation https://daiderd.com/nix-darwin/manual/index.html - description = "Darwin configuration"; + description = "Darwin System Configuration"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; @@ -50,6 +50,7 @@ system.defaults = { dock.autohide = true; + screencapture.location = "~/Pictures/Screencaptures"; }; homebrew.enable = true; @@ -70,6 +71,17 @@ # The platform the configuration will be used on. nixpkgs.hostPlatform = "aarch64-darwin"; + + programs.fish = { + enable = true; + }; + + programs.shh.knownHosts = [ + { + hostNames = [ "202.61.243.115" ]; + publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIDyx6oHz1jloUPfyt/Gp5Tt0vmk212YVj3+LeHwe20u"; + } + ]; }; in { diff --git a/home.nix b/home.nix index cbdce62..8d24648 100644 --- a/home.nix +++ b/home.nix @@ -5,6 +5,27 @@ home.homeDirectory = "/Users/claas"; home.stateVersion = "24.05"; + programs = { # Let Home Manager install and manage itself. - programs.home-manager.enable = true; + home-manager.enable = true; + git = { + enable = true; + userName = "Claas"; + userEmail = "claas@claas.dev"; + extraConfig = { + commit.gpgsign = true; + gpg.format = "ssh"; + user.signingkey = "~/.ssh/id_ed25519.pub"; + }; + }; + # htop alternative + btop.enable = true; + # Fish shell + fish.enable = true; + # GitHub CLI + gh = { + enable = true; + gitCredentialHelper.enable = true; + }; + }; } \ No newline at end of file diff --git a/initialize.sh b/initialize.sh new file mode 100644 index 0000000..c09982e --- /dev/null +++ b/initialize.sh @@ -0,0 +1,4 @@ +echo "TODO set up nix" + +echo "Copying nix.conf to ~/.config/nix/" +cp ./nix.conf ~/.config/nix/ \ No newline at end of file diff --git a/nix.conf b/nix.conf new file mode 100644 index 0000000..2c4e83f --- /dev/null +++ b/nix.conf @@ -0,0 +1 @@ +experimental-features = nix-command flakes \ No newline at end of file -- 2.51.2