diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 0000000..1ab5ec6 --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,20 @@ +# .github/workflows/nix-check.yml +name: Nix flake check + +on: + push: + pull_request: + +jobs: + check: + runs-on: macos-15 + steps: + - uses: actions/checkout@v5 + + - uses: DeterminateSystems/nix-installer-action@main + + - name: Flake check + run: nix flake check + + - name: Build (no activation) + run: nix build .#darwinConfigurations.Hasnaats-MacBook-Air.system diff --git a/home/home.nix b/home/home.nix new file mode 100644 index 0000000..8b2f3fc --- /dev/null +++ b/home/home.nix @@ -0,0 +1,23 @@ +{lib, ...}: { + imports = [ + ./dev/git.nix + ./tty/shells/fish.nix + ./tty/starship.nix + ./syncthing.nix + ./web/chromium.nix + ./web/firefox.nix + ]; + home.username = "ariz"; + home.homeDirectory = lib.mkForce "/Users/ariz"; + home.stateVersion = "26.05"; + home.enableNixpkgsReleaseCheck = false; + home.file.".hushlogin".text = ""; + + programs.home-manager.enable = true; + programs.warpd.enable = true; + programs.warpd.package = null; + programs.atuin = { + enable = true; + enableFishIntegration = true; + }; +} diff --git a/home/web/chromium.nix b/home/web/chromium.nix new file mode 100644 index 0000000..f162b10 --- /dev/null +++ b/home/web/chromium.nix @@ -0,0 +1,15 @@ +{ + pkgs, + lib, + hostPlatform, + ... +}: { + programs.chromium = { + enable = true; + package = pkgs.google-chrome; + }; + + extensions = lib.optionals (!hostPlatform.isDarwin) [ + {id = "ddkjiahejlhfcafbddmgiahcphecmpfh";} + ]; +} diff --git a/home/web/firefox.nix b/home/web/firefox.nix new file mode 100644 index 0000000..6782e42 --- /dev/null +++ b/home/web/firefox.nix @@ -0,0 +1,6 @@ +{...}: { + programs.firefox = { + enable = true; + enableVimium = true; + }; +}