summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-12-06 13:27:12 +0200
committerGitHub <noreply@github.com>2024-12-06 13:27:12 +0200
commit48380943b02251d6e465c6b0f2fc15c061758157 (patch)
tree5d596f27eb99f78cfa13ef4433aa907e4cad0acb
parentab33897f3c4b08dd89dd1d4c4a012f7cb32caa8b (diff)
parentb0c8eadda5587dcc8e95a019c0980784a58e4f0a (diff)
Merge pull request #2 from NobbZ/ghostty
ghostty
-rw-r--r--flake.lock111
-rw-r--r--flake.nix22
-rw-r--r--hosts/laptop-nixos/configuration.nix2
3 files changed, 122 insertions, 13 deletions
diff --git a/flake.lock b/flake.lock
index 47ba81f..31117f6 100644
--- a/flake.lock
+++ b/flake.lock
@@ -1,5 +1,43 @@
{
"nodes": {
+ "flake-utils": {
+ "inputs": {
+ "systems": "systems"
+ },
+ "locked": {
+ "lastModified": 1705309234,
+ "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
+ "type": "github"
+ },
+ "original": {
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "type": "github"
+ }
+ },
+ "ghostty": {
+ "inputs": {
+ "nixpkgs-stable": "nixpkgs-stable",
+ "nixpkgs-unstable": "nixpkgs-unstable",
+ "zig": "zig"
+ },
+ "locked": {
+ "lastModified": 1733436494,
+ "narHash": "sha256-/h5pK2ysUhBNyqsD6w0ii3W4zhuAOQNIpd99Vac5nBY=",
+ "ref": "refs/heads/main",
+ "rev": "2fb92dd4aa75214c3bc58220fa7638b698dcace3",
+ "revCount": 8178,
+ "type": "git",
+ "url": "ssh://git@github.com/ghostty-org/ghostty"
+ },
+ "original": {
+ "type": "git",
+ "url": "ssh://git@github.com/ghostty-org/ghostty"
+ }
+ },
"home-manager": {
"inputs": {
"nixpkgs": [
@@ -36,11 +74,84 @@
"type": "github"
}
},
+ "nixpkgs-stable": {
+ "locked": {
+ "lastModified": 1733423277,
+ "narHash": "sha256-TxabjxEgkNbCGFRHgM/b9yZWlBj60gUOUnRT/wbVQR8=",
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "rev": "e36963a147267afc055f7cf65225958633e536bf",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nixos",
+ "ref": "release-24.11",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "nixpkgs-unstable": {
+ "locked": {
+ "lastModified": 1733229606,
+ "narHash": "sha256-FLYY5M0rpa5C2QAE3CKLYAM6TwbKicdRK6qNrSHlNrE=",
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "rev": "566e53c2ad750c84f6d31f9ccb9d00f823165550",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nixos",
+ "ref": "nixpkgs-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
"root": {
"inputs": {
+ "ghostty": "ghostty",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs"
}
+ },
+ "systems": {
+ "locked": {
+ "lastModified": 1681028828,
+ "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+ "owner": "nix-systems",
+ "repo": "default",
+ "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-systems",
+ "repo": "default",
+ "type": "github"
+ }
+ },
+ "zig": {
+ "inputs": {
+ "flake-compat": [
+ "ghostty"
+ ],
+ "flake-utils": "flake-utils",
+ "nixpkgs": [
+ "ghostty",
+ "nixpkgs-stable"
+ ]
+ },
+ "locked": {
+ "lastModified": 1717848532,
+ "narHash": "sha256-d+xIUvSTreHl8pAmU1fnmkfDTGQYCn2Rb/zOwByxS2M=",
+ "owner": "mitchellh",
+ "repo": "zig-overlay",
+ "rev": "02fc5cc555fc14fda40c42d7c3250efa43812b43",
+ "type": "github"
+ },
+ "original": {
+ "owner": "mitchellh",
+ "repo": "zig-overlay",
+ "type": "github"
+ }
}
},
"root": "root",
diff --git a/flake.nix b/flake.nix
index bc97385..38d1472 100644
--- a/flake.nix
+++ b/flake.nix
@@ -8,23 +8,19 @@
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
+
+ ghostty.url = "git+ssh://git@github.com/ghostty-org/ghostty";
};
outputs = { self, nixpkgs, ... }@inputs:
- let
- pkgs = import nixpkgs {
- system = "x86_64-linux";
- config.allowUnfree = true;
- };
- in
{
- nixosConfigurations = {
- laptop-nixos = nixpkgs.lib.nixosSystem {
- specialArgs = {inherit inputs pkgs;};
- modules = [
- ./hosts/laptop-nixos/configuration.nix
- ];
+ nixosConfigurations = {
+ laptop-nixos = nixpkgs.lib.nixosSystem {
+ specialArgs = {inherit inputs;};
+ modules = [
+ ./hosts/laptop-nixos/configuration.nix
+ ];
+ };
};
};
- };
}
diff --git a/hosts/laptop-nixos/configuration.nix b/hosts/laptop-nixos/configuration.nix
index 5e73c74..d214678 100644
--- a/hosts/laptop-nixos/configuration.nix
+++ b/hosts/laptop-nixos/configuration.nix
@@ -79,6 +79,7 @@
home-manager = {
extraSpecialArgs = { inherit inputs pkgs; };
useUserPackages = true;
+ useGlobalPkgs = true;
users = {
"kyren" = import ./home.nix;
};
@@ -93,6 +94,7 @@
# List packages installed in system profile. Use for apps that need sudo.
environment.systemPackages = with pkgs; [
+ inputs.ghostty.packages.x86_64-linux.default
glib-networking
openssl
clang