fmt
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
./nixpkgs
|
||||
./home-manager
|
||||
@@ -16,31 +17,39 @@
|
||||
|
||||
console.useXkbConfig = true;
|
||||
|
||||
nix = let
|
||||
flakeInputs = lib.filterAttrs (_: v: lib.isType "flake" v) inputs;
|
||||
in {
|
||||
package = pkgs.lix;
|
||||
nix =
|
||||
let
|
||||
flakeInputs = lib.filterAttrs (_: v: lib.isType "flake" v) inputs;
|
||||
in
|
||||
{
|
||||
package = pkgs.lix;
|
||||
|
||||
# pin the registry to avoid downloading and evaling a new nixpkgs version every time
|
||||
registry = lib.mapAttrs (_: v: {flake = v;}) flakeInputs;
|
||||
# pin the registry to avoid downloading and evaling a new nixpkgs version every time
|
||||
registry = lib.mapAttrs (_: v: { flake = v; }) flakeInputs;
|
||||
|
||||
# set the path for channels compat
|
||||
nixPath = lib.mapAttrsToList (key: _: "${key}=flake:${key}") config.nix.registry;
|
||||
# set the path for channels compat
|
||||
nixPath = lib.mapAttrsToList (key: _: "${key}=flake:${key}") config.nix.registry;
|
||||
|
||||
settings = {
|
||||
auto-optimise-store = true;
|
||||
builders-use-substitutes = true;
|
||||
warn-dirty = false;
|
||||
accept-flake-config = false;
|
||||
# allow-import-from-derivation = true;
|
||||
experimental-features = ["nix-command" "flakes"];
|
||||
flake-registry = "/etc/nix/registry.json";
|
||||
settings = {
|
||||
auto-optimise-store = true;
|
||||
builders-use-substitutes = true;
|
||||
warn-dirty = false;
|
||||
accept-flake-config = false;
|
||||
# allow-import-from-derivation = true;
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
flake-registry = "/etc/nix/registry.json";
|
||||
|
||||
# # for direnv GC roots
|
||||
keep-derivations = true;
|
||||
keep-outputs = true;
|
||||
# # for direnv GC roots
|
||||
keep-derivations = true;
|
||||
keep-outputs = true;
|
||||
|
||||
trusted-users = ["root" "@wheel"];
|
||||
trusted-users = [
|
||||
"root"
|
||||
"@wheel"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{inputs, ...}: {
|
||||
{ inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs.hm.nixosModules.default
|
||||
];
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
{
|
||||
inputs,
|
||||
pkgs ? import <nixpkgs> {},
|
||||
pkgs ? import <nixpkgs> { },
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
default = pkgs.mkShell {
|
||||
# Add Rust toolchain from Fenix and rust-analyzer-nightly
|
||||
packages = [
|
||||
|
||||
Reference in New Issue
Block a user