Moar tweaks

- add pandoc so emacs can preview markdown
- add nix-index & nix-index database to enable fast command-not-found integration
This commit is contained in:
Tristan D. 2023-09-19 16:40:21 +02:00
parent 8a23a33c52
commit 0043833173
Signed by: tristan
SSH key fingerprint: SHA256:U7y6eMb7CQDaTHv9XoX6/BaQnPqyxxKc+Xnfcefi6rY
4 changed files with 43 additions and 12 deletions

View file

@ -163,6 +163,7 @@
wget wget
]; ];
programs.command-not-found.enable = false;
programs.dconf.enable = true; programs.dconf.enable = true;
programs.fish.enable = true; programs.fish.enable = true;
programs.gnupg.agent = { programs.gnupg.agent = {

33
flake.lock generated
View file

@ -29,11 +29,11 @@
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
}, },
"locked": { "locked": {
"lastModified": 1695092339, "lastModified": 1695119543,
"narHash": "sha256-sNzTBI6wqcS4OvxhoICjcNfIFdL/E1JEAYluSPmkI3E=", "narHash": "sha256-TIaKAHM5qFrK0q+mfT/Oa1QvGjB6eXdwJ3zhMu6IxJ8=",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "56689381ea01e234a5ac331227002fbf22b794f3", "rev": "32cf0314159f4b2eb85970483124e7df730e3413",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -150,6 +150,26 @@
"type": "github" "type": "github"
} }
}, },
"nix-index-database": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1694921880,
"narHash": "sha256-yU36cs5UdzhTwsM9bUWUz43N//ELzQ1ro69C07pU/8E=",
"owner": "Mic92",
"repo": "nix-index-database",
"rev": "9d2bcc47110b3b6217dfebd6761ba20bc78aedf2",
"type": "github"
},
"original": {
"owner": "Mic92",
"repo": "nix-index-database",
"type": "github"
}
},
"nix-wallpaper": { "nix-wallpaper": {
"inputs": { "inputs": {
"flake-utils": "flake-utils_2", "flake-utils": "flake-utils_2",
@ -238,11 +258,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1695110420, "lastModified": 1695123992,
"narHash": "sha256-tZRgkZwU8wArD8oFsEQ5hjLfkcny7Cvr7KuGlfKXdW8=", "narHash": "sha256-Jd9qlB9Z6c5mJQ0M3IDQX4J/LBTkkPkctlxiGK5Xqo0=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "ada2638fdfdbd642fef6a87381a2c6acc8850b85", "rev": "d3e2b92cdfcd27e878c647b9f013f2d02d444c75",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -284,6 +304,7 @@
"disko": "disko", "disko": "disko",
"emacs-overlay": "emacs-overlay", "emacs-overlay": "emacs-overlay",
"home-manager": "home-manager", "home-manager": "home-manager",
"nix-index-database": "nix-index-database",
"nix-wallpaper": "nix-wallpaper", "nix-wallpaper": "nix-wallpaper",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nur": "nur", "nur": "nur",

View file

@ -28,6 +28,10 @@
url = "github:lunik1/nix-wallpaper"; url = "github:lunik1/nix-wallpaper";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nix-index-database = {
url = "github:Mic92/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = inputs: let outputs = inputs: let
@ -53,14 +57,9 @@
modules = [ modules = [
./home.nix ./home.nix
inputs.nur.hmModules.nur
{ {
_module.args.customPkgs = customPkgs; _module.args.customPkgs = customPkgs;
_module.args.inputs = inputs; _module.args.inputs = inputs;
# inherit customPkgs;
# pkgs.pkgs = customPkgs;
# home-manager.useUserPackages = true;
# home-manager.useGlobalPkgs = true;
} }
]; ];
}; };
@ -76,9 +75,9 @@
inputs.home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager
inputs.tuxedo-nixos.nixosModules.default inputs.tuxedo-nixos.nixosModules.default
inputs.nur.nixosModules.nur inputs.nur.nixosModules.nur
inputs.nix-index-database.nixosModules.nix-index
{ {
_module.args.customPkgs = customPkgs; _module.args.customPkgs = customPkgs;
# _module.args.nix-wallpaper = nix-wallpaper;
_module.args.inputs = inputs; _module.args.inputs = inputs;
nixpkgs.pkgs = customPkgs; nixpkgs.pkgs = customPkgs;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;

View file

@ -11,6 +11,10 @@
}; };
wallpaperPath = "${wallpaper}/share/wallpapers/nixos-wallpaper.png"; wallpaperPath = "${wallpaper}/share/wallpapers/nixos-wallpaper.png";
in { in {
imports = [
inputs.nix-index-database.hmModules.nix-index
inputs.nur.hmModules.nur
];
dconf.settings = { dconf.settings = {
"org/virt-manager/virt-manager/connections" = { "org/virt-manager/virt-manager/connections" = {
autoconnect = ["qemu:///system"]; autoconnect = ["qemu:///system"];
@ -35,6 +39,11 @@ in {
package = customPkgs.emacs-unstable-pgtk; package = customPkgs.emacs-unstable-pgtk;
}; };
programs.nix-index = {
enable = true;
enableFishIntegration = true;
};
programs.fish = { programs.fish = {
enable = true; enable = true;
@ -330,6 +339,7 @@ in {
gnutls gnutls
gnumake gnumake
gcc gcc
pandoc
libtool libtool
fd fd
imagemagick imagemagick