diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-06-26 16:47:52 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-06-26 17:06:29 +0200 |
commit | 45560caab2bd45b65d234139ad73f4cea304462c (patch) | |
tree | 7c392fc45d7de167bb7ee49433fbdcd9665a151d | |
parent | Fix light requiring root permissions (diff) | |
download | nixos-config-45560caab2bd45b65d234139ad73f4cea304462c.tar.gz nixos-config-45560caab2bd45b65d234139ad73f4cea304462c.tar.bz2 nixos-config-45560caab2bd45b65d234139ad73f4cea304462c.zip |
Add automatically updating prebuilt nix-index and comma
-rw-r--r-- | flake.lock | 16 | ||||
-rw-r--r-- | flake.nix | 3 | ||||
-rw-r--r-- | hosts/configuration.nix | 1 | ||||
-rw-r--r-- | hosts/home.nix | 2 | ||||
-rw-r--r-- | hosts/luna/home.nix | 2 | ||||
-rw-r--r-- | hosts/phobos/home.nix | 2 |
6 files changed, 25 insertions, 1 deletions
diff --git a/flake.lock b/flake.lock index 1122e01..8b6c715 100644 --- a/flake.lock +++ b/flake.lock @@ -41,6 +41,21 @@ "type": "github" } }, + "nix-index": { + "locked": { + "lastModified": 1656216057, + "narHash": "sha256-iD1R0PSHVj351Ue7ARibu3SDfzqv79lfUKHRU6aIKrI=", + "owner": "Mic92", + "repo": "nix-index-database", + "rev": "be1a027f12d9fcfb43fb8e3592e59ed6897f765d", + "type": "github" + }, + "original": { + "owner": "Mic92", + "repo": "nix-index-database", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1655895887, @@ -107,6 +122,7 @@ "root": { "inputs": { "home-manager": "home-manager", + "nix-index": "nix-index", "nixpkgs": "nixpkgs", "nur": "nur" } diff --git a/flake.nix b/flake.nix index 4a41a19..016ed06 100644 --- a/flake.nix +++ b/flake.nix @@ -8,9 +8,10 @@ inputs.nixpkgs.follows = "nixpkgs"; }; nur.url = "github:nix-community/NUR"; + nix-index.url = "github:Mic92/nix-index-database"; }; - outputs = inputs @ { self, nixpkgs, home-manager, nur }: + outputs = inputs @ { self, nixpkgs, home-manager, nur, ... }: let user = "baitinq"; in { diff --git a/hosts/configuration.nix b/hosts/configuration.nix index 345645a..bfe46ac 100644 --- a/hosts/configuration.nix +++ b/hosts/configuration.nix @@ -91,6 +91,7 @@ neovim steam-run compsize #used to check btrfs space savings + comma ]; # Some programs need SUID wrappers, can be configured further or are diff --git a/hosts/home.nix b/hosts/home.nix index 14ca6ad..4437f48 100644 --- a/hosts/home.nix +++ b/hosts/home.nix @@ -3,6 +3,8 @@ let dotfiles = ../dotfiles; in { + imports = [ ]; + home = { username = "${user}"; homeDirectory = "/home/${user}"; diff --git a/hosts/luna/home.nix b/hosts/luna/home.nix index ff3c95b..43aecfd 100644 --- a/hosts/luna/home.nix +++ b/hosts/luna/home.nix @@ -47,4 +47,6 @@ hwdec ''; }; + + home.file.".cache/nix-index/files".source = inputs.nix-index.legacyPackages.x86_64-linux.database; } diff --git a/hosts/phobos/home.nix b/hosts/phobos/home.nix index 4e177b3..b56be45 100644 --- a/hosts/phobos/home.nix +++ b/hosts/phobos/home.nix @@ -34,4 +34,6 @@ RIGHT_PADDING=" " LEFT_PADDING=" " ''; + + home.file.".cache/nix-index/files".source = inputs.nix-index.legacyPackages.x86_64-linux.database; } |