home/natto: generic updates

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2022-07-12 01:13:56 +05:30
parent a66daf3ac6
commit 81c072b34f
7 changed files with 189 additions and 132 deletions

206
flake.lock generated
View File

@@ -22,11 +22,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1653045399, "lastModified": 1656843353,
"narHash": "sha256-olhvDOOmxoXhyrVHsPAifTuhHJCH0eyG4t1FzIBJgEs=", "narHash": "sha256-tIbbKYUh84tV1CL0+gOna6CFRPpaYgorcVnMureqU2g=",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "f2b5fc6846d69051b7a7b174f7a96aa57b195f6e", "rev": "dc48cd35bdf435d31e4ee6f488ba868b1a07bac5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -53,11 +53,11 @@
}, },
"flake-utils": { "flake-utils": {
"locked": { "locked": {
"lastModified": 1652776076, "lastModified": 1656065134,
"narHash": "sha256-gzTw/v1vj4dOVbpBSJX4J0DwUR6LIyXo7/SuuTJp1kM=", "narHash": "sha256-oc6E6ByIw3oJaIyc67maaFcnjYOz1mMcOtHxbEf9NwQ=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "04c1b180862888302ddfb2e3ad9eaa63afc60cf8", "rev": "bee6a7250dd1b01844a2de7e02e4df7d8a0a206c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -83,11 +83,11 @@
}, },
"flake-utils_3": { "flake-utils_3": {
"locked": { "locked": {
"lastModified": 1637014545, "lastModified": 1656065134,
"narHash": "sha256-26IZAc5yzlD9FlDT54io1oqG/bBoyka+FJk5guaX4x4=", "narHash": "sha256-oc6E6ByIw3oJaIyc67maaFcnjYOz1mMcOtHxbEf9NwQ=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "bba5dcc8e0b20ab664967ad83d24d64cb64ec4f4", "rev": "bee6a7250dd1b01844a2de7e02e4df7d8a0a206c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -98,14 +98,15 @@
}, },
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2",
"utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1652996682, "lastModified": 1656367977,
"narHash": "sha256-7ZWyd5W2tM/uxXGn16AJUXenlGPUt/r6zitEcorz5j0=", "narHash": "sha256-0hV17V9Up9pnAtPJ+787FhrsPnawxoTPA/VxgjRMrjc=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "02b15de8ad714409358cffdc6ed518ade03402c4", "rev": "3bf16c0fd141c28312be52945d1543f9ce557bb1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -137,14 +138,15 @@
"inputs": { "inputs": {
"blobs": "blobs", "blobs": "blobs",
"nixpkgs": "nixpkgs_4", "nixpkgs": "nixpkgs_4",
"utils": "utils" "nixpkgs-22_05": "nixpkgs-22_05",
"utils": "utils_2"
}, },
"locked": { "locked": {
"lastModified": 1652050932, "lastModified": 1655930346,
"narHash": "sha256-1lOa33Z2sC6CmNdqkCtplVHlMUWVZl4FLT6MYOM+WJQ=", "narHash": "sha256-ht56HHOzEhjeIgAv5ZNFjSVX/in1YlUs0HG9c1EUXTM=",
"owner": "simple-nixos-mailserver", "owner": "simple-nixos-mailserver",
"repo": "nixos-mailserver", "repo": "nixos-mailserver",
"rev": "4396125ebbbaecbaba0f8e0afb25e492b3be5795", "rev": "f535d8123c4761b2ed8138f3d202ea710a334a1d",
"type": "gitlab" "type": "gitlab"
}, },
"original": { "original": {
@@ -155,11 +157,11 @@
}, },
"master": { "master": {
"locked": { "locked": {
"lastModified": 1653050917, "lastModified": 1656835607,
"narHash": "sha256-eZwDi0VjGt7hRvhFYaq+/olq+na2gEORPgWIj5qx43E=", "narHash": "sha256-zONMAG6JSfGyW20AsVWGnlZwNWws6Q/7IT0oDNGc1xY=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "6501ee65b0493c880ba2e2b9d62766d6bb10cbca", "rev": "18b14a254dca6b68ca0ce2ce885ce2b550065799",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -172,14 +174,14 @@
"nbfc": { "nbfc": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_5", "nixpkgs": "nixpkgs_5",
"utils": "utils_2" "utils": "utils_3"
}, },
"locked": { "locked": {
"lastModified": 1646815880, "lastModified": 1656085955,
"narHash": "sha256-r/Ul0+LfoKWAYaIwEVR9WGsvMsJgg8M6Yz1fTazWGxc=", "narHash": "sha256-Q/W/O2cevofDNzn2ly1r6mfl39VnSrYxocKLr+JxQ3s=",
"owner": "nbfc-linux", "owner": "nbfc-linux",
"repo": "nbfc-linux", "repo": "nbfc-linux",
"rev": "5182dc0d4e66a67f976b291e122e007000ccc720", "rev": "d104ac58278d9fa23404bd614c67d8c9f38414cb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -198,11 +200,11 @@
}, },
"locked": { "locked": {
"dir": "contrib", "dir": "contrib",
"lastModified": 1653002438, "lastModified": 1656801796,
"narHash": "sha256-6V8vvZwRH7U/3NcfJQGTzy9KJKsfl/+1xVtbS+84M8M=", "narHash": "sha256-hPc0lYOADYHnrwIE+xqUqDpvCPHF5IpOLtfI69Fwels=",
"owner": "neovim", "owner": "neovim",
"repo": "neovim", "repo": "neovim",
"rev": "eb0aa8bb0ebc3cc233af6a5281c553d14ee57183", "rev": "e837f29ce6c7784340ae2cd866aa239462d3920c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -217,11 +219,11 @@
"nixpkgs": "nixpkgs_6" "nixpkgs": "nixpkgs_6"
}, },
"locked": { "locked": {
"lastModified": 1652398145, "lastModified": 1656538843,
"narHash": "sha256-W6Nv8xXBApGXGq0XQXbH7rDrV3ZjaNv8WMV2Yk4YEzI=", "narHash": "sha256-LOz946WwnE1no0J4RZeXxhb9w/9ndo4KAJPw8YA8Izk=",
"owner": "fufexan", "owner": "fufexan",
"repo": "nix-gaming", "repo": "nix-gaming",
"rev": "ae98c45185cba42bf8b4d0a6922a491bf9faa090", "rev": "76923470f96d5ca3e3899dc733bc6168fefafee0",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -232,11 +234,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1650970888, "lastModified": 1655481042,
"narHash": "sha256-K0Qk6YbkyxBbszkBKCxsLA+jrQpaecf0X8iIO8frS48=", "narHash": "sha256-XHbcywq2vIQ5CeH1OK3TN793jkiNAAZsSctS1PFgseo=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "27a62a9c603d0d832141682cb4f34964d7b48ebb", "rev": "103a4c0ae46afa9cf008c30744175315ca38e9f9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -244,27 +246,44 @@
"type": "indirect" "type": "indirect"
} }
}, },
"nixpkgs-22_05": {
"locked": {
"lastModified": 1654936503,
"narHash": "sha256-soKzdhI4jTHv/rSbh89RdlcJmrPgH8oMb/PLqiqIYVQ=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "dab6df51387c3878cdea09f43589a15729cae9f4",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-22.05",
"type": "indirect"
}
},
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1650970888, "lastModified": 1654230545,
"narHash": "sha256-K0Qk6YbkyxBbszkBKCxsLA+jrQpaecf0X8iIO8frS48=", "narHash": "sha256-8Vlwf0x8ow6pPOK2a04bT+pxIeRnM1+O0Xv9/CuDzRs=",
"owner": "NixOS", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "27a62a9c603d0d832141682cb4f34964d7b48ebb", "rev": "236cc2971ac72acd90f0ae3a797f9f83098b17ec",
"type": "github" "type": "github"
}, },
"original": { "original": {
"id": "nixpkgs", "owner": "nixos",
"type": "indirect" "ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
} }
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1650970888, "lastModified": 1655481042,
"narHash": "sha256-K0Qk6YbkyxBbszkBKCxsLA+jrQpaecf0X8iIO8frS48=", "narHash": "sha256-XHbcywq2vIQ5CeH1OK3TN793jkiNAAZsSctS1PFgseo=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "27a62a9c603d0d832141682cb4f34964d7b48ebb", "rev": "103a4c0ae46afa9cf008c30744175315ca38e9f9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -304,26 +323,27 @@
}, },
"nixpkgs_6": { "nixpkgs_6": {
"locked": { "locked": {
"lastModified": 1651319551, "lastModified": 1656401090,
"narHash": "sha256-sw4Bx5mdVej9nFEMS9qF6cOTIo6SdDI4V7Mvvdkg94Y=", "narHash": "sha256-bUS2nfQsvTQW2z8SK7oEFSElbmoBahOPtbXPm0AL3I4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "f153271f124108dc89c1bba2883adf782ad759ff", "rev": "16de63fcc54e88b9a106a603038dd5dd2feb21eb",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
}, },
"nixpkgs_7": { "nixpkgs_7": {
"locked": { "locked": {
"lastModified": 1652840887, "lastModified": 1656755932,
"narHash": "sha256-gEK4NNa4GwIgTZE63kt/4WTFAWRTJVSa30+h4ZjFh9U=", "narHash": "sha256-TGThfOxr+HjFK464+UoUE6rClp2cwxjiKvHcBVdIGSQ=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "52dc75a4fee3fdbcb792cb6fba009876b912bfe0", "rev": "660ac43ff9ab1f12e28bfb31d4719795777fe152",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -335,11 +355,11 @@
}, },
"nixpkgs_8": { "nixpkgs_8": {
"locked": { "locked": {
"lastModified": 1652885393, "lastModified": 1656753965,
"narHash": "sha256-YIgvvlk4iQ1Hi7KD9o5gsojc+ApB+jiH1d5stK8uXiw=", "narHash": "sha256-BCrB3l0qpJokOnIVc3g2lHiGhnjUi0MoXiw6t1o8H1E=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "48037fd90426e44e4bf03e6479e88a11453b9b66", "rev": "0ea7a8f1b939d74e5df8af9a8f7342097cdf69eb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -351,11 +371,11 @@
}, },
"nixpkgs_9": { "nixpkgs_9": {
"locked": { "locked": {
"lastModified": 1637453606, "lastModified": 1656401090,
"narHash": "sha256-Gy6cwUswft9xqsjWxFYEnx/63/qzaFUwatcbV5GF/GQ=", "narHash": "sha256-bUS2nfQsvTQW2z8SK7oEFSElbmoBahOPtbXPm0AL3I4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "8afc4e543663ca0a6a4f496262cd05233737e732", "rev": "16de63fcc54e88b9a106a603038dd5dd2feb21eb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -367,11 +387,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1653042409, "lastModified": 1656835264,
"narHash": "sha256-P3h+rDxT1AScFhwc8MconD5AnhmWykoEMNDatP6IEMU=", "narHash": "sha256-sCHGbrrxvJ6US7JJLRhFtH7ai7gOorw8Qq1P8R+AJnU=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "f27711d8edb9480dfb1c3c899987df4b94aa2bed", "rev": "3574ef870a60a93ee4e2aebec4039572fb36361d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -387,11 +407,11 @@
"nixpkgs": "nixpkgs_8" "nixpkgs": "nixpkgs_8"
}, },
"locked": { "locked": {
"lastModified": 1653034615, "lastModified": 1656836079,
"narHash": "sha256-WbofGOnVjhFTKfC7WWwiWdrD5w/eRkm0o1A44vnfWbE=", "narHash": "sha256-iFtDARirUZeDd6qEN9Kgrn1L0P4daQ4tCvnFaDRgfa8=",
"owner": "nix-community", "owner": "nix-community",
"repo": "neovim-nightly-overlay", "repo": "neovim-nightly-overlay",
"rev": "1ff270f63d9179b83ed2aadbdba3d0880a091305", "rev": "8adbfbd9d4802aa1358b0094c0e0f3bb56fb2fce",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -402,16 +422,16 @@
}, },
"old": { "old": {
"locked": { "locked": {
"lastModified": 1645296114, "lastModified": 1656608236,
"narHash": "sha256-y53N7TyIkXsjMpOG7RhvqJFGDacLs9HlyHeSTBioqYU=", "narHash": "sha256-ZRsimvpsuj5FI0R7uuTVq7vV/C3zKn4Kcfm6roOaNjA=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "530a53dcbc9437363471167a5e4762c5fcfa34a1", "rev": "399c514226ac48d7855838d0777f47f2fa59730a",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"ref": "nixos-21.05", "ref": "nixos-21.11",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@@ -431,7 +451,8 @@
"old": "old", "old": "old",
"rust": "rust", "rust": "rust",
"stable": "stable", "stable": "stable",
"utils": "utils_3" "stable-small": "stable-small",
"utils": "utils_4"
} }
}, },
"rust": { "rust": {
@@ -440,11 +461,11 @@
"nixpkgs": "nixpkgs_9" "nixpkgs": "nixpkgs_9"
}, },
"locked": { "locked": {
"lastModified": 1653014441, "lastModified": 1656816597,
"narHash": "sha256-6TRk5POjjevXZUzBnQ7Nlac1It4l12mEAltw5sRfQg8=", "narHash": "sha256-Y3f7wOZIvgr5IGW0u3d8stemjQPPRs4n93DjKJbrvXs=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "6ae180c1af192475b29e269f10d9da2d5abec4f0", "rev": "bbba5e73a21c8c67d5fe1d4d8b3fde60ab6946cd",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -455,21 +476,52 @@
}, },
"stable": { "stable": {
"locked": { "locked": {
"lastModified": 1652881001, "lastModified": 1656679828,
"narHash": "sha256-k9JmPCojaJnqGz4aRXXT1HZqJKHCXijoMfBAb24abXk=", "narHash": "sha256-akGA97pR1BAQew1FrVTCME3p8qvYxJXB2X3a13aBphs=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2d474d6a4a43a0348b78db68dc00c491032cf5cf", "rev": "915f5a5b3cc4f8ba206afd0b70e52ba4c6a2796b",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"ref": "nixos-21.11", "ref": "nixos-22.05",
"repo": "nixpkgs",
"type": "github"
}
},
"stable-small": {
"locked": {
"lastModified": 1656753894,
"narHash": "sha256-N1urCClfrU5/f3Z/j23HEPxqYMJmhTP7RqNzmevMbCU=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "f04e77d4904b8c7bf19294061c0ebb1e2b11771b",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-22.05-small",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
}, },
"utils": { "utils": {
"locked": {
"lastModified": 1653893745,
"narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"utils_2": {
"locked": { "locked": {
"lastModified": 1605370193, "lastModified": 1605370193,
"narHash": "sha256-YyMTf3URDL/otKdKgtoMChu4vfVL3vCMkRqpGifhUn0=", "narHash": "sha256-YyMTf3URDL/otKdKgtoMChu4vfVL3vCMkRqpGifhUn0=",
@@ -484,7 +536,7 @@
"type": "github" "type": "github"
} }
}, },
"utils_2": { "utils_3": {
"locked": { "locked": {
"lastModified": 1623875721, "lastModified": 1623875721,
"narHash": "sha256-A8BU7bjS5GirpAUv4QA+QnJ4CceLHkcXdRp4xITDB0s=", "narHash": "sha256-A8BU7bjS5GirpAUv4QA+QnJ4CceLHkcXdRp4xITDB0s=",
@@ -499,13 +551,13 @@
"type": "github" "type": "github"
} }
}, },
"utils_3": { "utils_4": {
"locked": { "locked": {
"lastModified": 1652776076, "lastModified": 1656065134,
"narHash": "sha256-gzTw/v1vj4dOVbpBSJX4J0DwUR6LIyXo7/SuuTJp1kM=", "narHash": "sha256-oc6E6ByIw3oJaIyc67maaFcnjYOz1mMcOtHxbEf9NwQ=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "04c1b180862888302ddfb2e3ad9eaa63afc60cf8", "rev": "bee6a7250dd1b01844a2de7e02e4df7d8a0a206c",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -1,7 +1,8 @@
{ {
inputs = { inputs = {
stable.url = github:nixos/nixpkgs/nixos-21.11; stable.url = github:nixos/nixpkgs/nixos-22.05;
old.url = github:nixos/nixpkgs/nixos-21.05; stable-small.url = github:nixos/nixpkgs/nixos-22.05-small;
old.url = github:nixos/nixpkgs/nixos-21.11;
nixpkgs.url = github:nixos/nixpkgs/nixpkgs-unstable; nixpkgs.url = github:nixos/nixpkgs/nixpkgs-unstable;
master.url = github:nixos/nixpkgs/master; master.url = github:nixos/nixpkgs/master;
home-manager.url = github:nix-community/home-manager; home-manager.url = github:nix-community/home-manager;
@@ -16,7 +17,7 @@
rust.url = github:oxalica/rust-overlay; rust.url = github:oxalica/rust-overlay;
}; };
outputs = inputs@{ self, utils, nixpkgs, stable, master, old, ... }: outputs = inputs@{ self, utils, nixpkgs, stable, master, old, stable-small, ... }:
with utils.lib; eachSystem with utils.lib; eachSystem
(with system; (with system;
[ x86_64-linux aarch64-linux ]) [ x86_64-linux aarch64-linux ])
@@ -28,6 +29,7 @@
}; };
channels = final: prev: { channels = final: prev: {
stable = mkPkgs stable prev.system; stable = mkPkgs stable prev.system;
stable-small = mkPkgs stable-small prev.system;
unstable = mkPkgs nixpkgs prev.system; unstable = mkPkgs nixpkgs prev.system;
master = mkPkgs master prev.system; master = mkPkgs master prev.system;
old = mkPkgs old prev.system; old = mkPkgs old prev.system;
@@ -78,26 +80,21 @@
in in
{ {
homeConfigurations = { homeConfigurations = {
natto = inputs.home-manager.lib.homeManagerConfiguration rec { natto = inputs.home-manager.lib.homeManagerConfiguration {
system = "x86_64-linux"; modules = [
configuration = { lib, ... }: { ./home/natto
imports = [ {
./home/natto home = {
] ++ homeModules; homeDirectory = "/home/natto";
home.packages = [ username = "natto";
inputs.home-manager.defaultPackage.${system} packages = [
]; inputs.home-manager.defaultPackage.x86_64-linux
nixpkgs = { ];
overlays = self.legacyPackages.${system}.overlays; stateVersion = "22.05";
config.allowUnfree = true; };
config.allowBroken = true; }
config.permittedInsecurePackages = [ ] ++ homeModules;
"electron-9.4.4" pkgs = self.legacyPackages.x86_64-linux;
];
};
};
homeDirectory = "/home/natto";
username = "natto";
}; };
}; };

View File

@@ -192,7 +192,7 @@ To get colemak-dh bindings in evil mode
*** Configure treemacs *** Configure treemacs
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package treemacs (use-package treemacs
:atfer cfrs :after cfrs
:config :config
(treemacs-filewatch-mode 1) (treemacs-filewatch-mode 1)
(treemacs-display-current-project-exclusively) (treemacs-display-current-project-exclusively)
@@ -289,40 +289,40 @@ For autocomplete
** Treesitter ** Treesitter
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package tree-sitter-langs) ;(use-package tree-sitter-langs)
(use-package tree-sitter ;(use-package tree-sitter
:after tree-sitter-langs ; :after tree-sitter-langs
:config ; :config
(global-tree-sitter-mode) ; (global-tree-sitter-mode)
:init ; :init
(add-to-list 'tree-sitter-major-mode-language-alist '(fundamental-mode . bash)) ; (add-to-list 'tree-sitter-major-mode-language-alist '(fundamental-mode . bash))
(add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode)) ; (add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode))
#+end_src #+end_src
** Lang support ** Lang support
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package haskell-mode) ;(use-package haskell-mode)
(use-package rustic) ;(use-package rustic)
(use-package nix-mode ;(use-package nix-mode
:mode "\\.nix\\'") ; :mode "\\.nix\\'")
(add-to-list 'lsp-language-id-configuration '(nix-mode . "nix")) ;(add-to-list 'lsp-language-id-configuration '(nix-mode . "nix"))
(lsp-register-client ;(lsp-register-client
(make-lsp-client :new-connection (lsp-stdio-connection '("rnix-lsp")) ; (make-lsp-client :new-connection (lsp-stdio-connection '("rnix-lsp"))
:major-modes '(nix-mode) ; :major-modes '(nix-mode)
:server-id 'nix)) ; :server-id 'nix))
(use-package hcl-mode ;(use-package hcl-mode
:mod ; :mod
"\\.hcl\\'" ; "\\.hcl\\'"
"\\.nomad\\'") ; "\\.nomad\\'")
#+end_src #+end_src
** Magit ** Magit
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package magit) ; (use-package magit)
#+end_src #+end_src
* VTerm * VTerm
@@ -330,6 +330,8 @@ For autocomplete
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package vterm (use-package vterm
:config :config
(evil-define-key 'normal vterm-mode-map (kbd "p") 'vterm-yank)
(evil-define-key 'insert vterm-mode-map (kbd "C-y") 'vterm-yank)
(setq vterm-timer-delay 0.005)) (setq vterm-timer-delay 0.005))
(use-package vterm-toggle (use-package vterm-toggle

View File

@@ -17,11 +17,10 @@ config :: Config
config = config =
defaultConfig defaultConfig
{ {
--font = "xft:Fira Mono:style=Regular:antialias=true:pixelsize,Font Awesome 5 Brands:pixelsize=16,Font Awesome 5 Free:pixelsize=16:style=Solid,Lohit Devanagari:style=Regular:pixelsize=16,Lohit Gurmukhi:style=Regular:pixelsize=16,Noto Sans CJK JP:style=Regular:pixelsize=16,Noto Sans CJK KR:style=Regular:pixelsize=16,Noto Sans CJK SC:style=Regular:pixelsize=16", font = "xft:Fira Mono:style=Regular:antialias=true:pixelsize,Font Awesome 6 Brands:pixelsize=16,Font Awesome 6 Free:pixelsize=16:style=Solid,Lohit Devanagari:style=Regular:pixelsize=16,Lohit Gurmukhi:style=Regular:pixelsize=16,Noto Sans CJK JP:style=Regular:pixelsize=16,Noto Sans CJK KR:style=Regular:pixelsize=16,Noto Sans CJK SC:style=Regular:pixelsize=16",
font = "xft:Fira Mono:style=Regular:antialias=true:pixelsize,Font Awesome 5 Brands:pixelsize=16,Font Awesome 5 Free:pixelsize=16:style=Solid,Lohit Devanagari:style=Regular:pixelsize=16,Lohit Gurmukhi:style=Regular:pixelsize=16,HanaMinA:style=Regular:pixelsize=16,HanaMinB:style=Regular:pixelsize=16",
additionalFonts = additionalFonts =
[ "xft:Font Awesome 5 Free:pixelsize=15:style=Solid", [ "xft:Font Awesome 6 Free:pixelsize=15:style=Solid",
"xft:Font Awesome 5 Brands:pixelsize=15" "xft:Font Awesome 6 Brands:pixelsize=15"
], ],
position = Static { xpos = 0, ypos = 0, height = 23, width = 1920 }, position = Static { xpos = 0, ypos = 0, height = 23, width = 1920 },
bgColor = bg, bgColor = bg,

View File

@@ -9,10 +9,17 @@
mpdas mpdas
pavucontrol pavucontrol
unstable.anup unstable.anup
xfce.thunar (xfce.thunar.override {
thunarPlugins = with xfce; [
thunar-media-tags-plugin
thunar-volman
thunar-archive-plugin
];
})
xfce.xfconf xfce.xfconf
xfce.tumbler xfce.tumbler
master.discord master.discord
master.discord-canary
mpd_discord_richpresence mpd_discord_richpresence
sox sox
qbittorrent qbittorrent

View File

@@ -8,7 +8,7 @@ in
enable = true; enable = true;
package = pkgs.mymacs ./config/emacs/config.org; package = pkgs.mymacs ./config/emacs/config.org;
defaultEditor = { defaultEditor = {
enable = true; enable = false;
editor = "emacsclient"; editor = "emacsclient";
}; };
copyConfigFiles = { copyConfigFiles = {

View File

@@ -3,7 +3,7 @@
, fetchzip , fetchzip
, fetchurl , fetchurl
, fetchFromGitHub , fetchFromGitHub
, emacsGcc , emacsNativeComp
, conf ? null , conf ? null
, ... , ...
}: }:
@@ -12,11 +12,11 @@ assert (conf != null);
emacsWithPackagesFromUsePackage { emacsWithPackagesFromUsePackage {
config = conf; config = conf;
package = emacsGcc; package = emacsNativeComp;
alwaysEnsure = true; alwaysEnsure = true;
alwaysTangle = true; alwaysTangle = true;
extraEmacsPackages = epkgs: with epkgs; [ extraEmacsPackages = epkgs: with epkgs; [
use-package use-package
(epkgs.tree-sitter-langs.withPlugins (_: epkgs.tree-sitter-langs.plugins)) # (epkgs.tree-sitter-langs.withPlugins (_: epkgs.tree-sitter-langs.plugins))
]; ];
} }