From 71af10ff3b423d8e2aef010d054f043e236dad02 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sun, 30 Jul 2023 16:32:05 +0800 Subject: [PATCH] feat: update readme, adjust nix settings --- README.md | 5 +++-- flake.nix | 1 - modules/nixos/core-server.nix | 14 ++++++++------ 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index d39cb78b..a747d76f 100644 --- a/README.md +++ b/README.md @@ -164,13 +164,14 @@ Other dotfiles that inspired me: - [xddxdd/nixos-config](https://github.com/xddxdd/nixos-config) - [bobbbay/dotfiles](https://github.com/bobbbay/dotfiles) - [gytis-ivaskevicius/nixfiles](https://github.com/gytis-ivaskevicius/nixfiles) - - [fufexan/dotfiles](https://github.com/fufexan/dotfiles) - [davidtwco/veritas](https://github.com/davidtwco/veritas) - [gvolpe/nix-config](https://github.com/gvolpe/nix-config) - [Ruixi-rebirth/flakes](https://github.com/Ruixi-rebirth/flakes) -- Hyprland + - [fufexan/dotfiles](https://github.com/fufexan/dotfiles): gtk theme, xdg, git, media, anyrun, etc. +- Hyprland(wayland) - [HeinzDev/Hyprland-dotfiles](https://github.com/HeinzDev/Hyprland-dotfiles) - [notwidow/hyprland](https://github.com/notwidow/hyprland) + - [linuxmobile/kaku](https://github.com/linuxmobile/kaku) - I3 Window Manager - [denisse-dev/dotfiles](https://github.com/denisse-dev/dotfiles) - Neovim/AstroNvim diff --git a/flake.nix b/flake.nix index 670f9c0b..064205f5 100644 --- a/flake.nix +++ b/flake.nix @@ -270,7 +270,6 @@ nixConfig = { experimental-features = ["nix-command" "flakes"]; - builders-use-substitutes = true; substituters = [ # replace official cache with a mirror located in China "https://mirrors.ustc.edu.cn/nix-channels/store" diff --git a/modules/nixos/core-server.nix b/modules/nixos/core-server.nix index 5658871a..5145f08d 100644 --- a/modules/nixos/core-server.nix +++ b/modules/nixos/core-server.nix @@ -19,12 +19,14 @@ options = lib.mkDefault "--delete-older-than 1w"; }; - # Manual optimise storage: nix-store --optimise - # https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-auto-optimise-store - nix.settings.auto-optimise-store = true; - - # enable flakes globally - nix.settings.experimental-features = ["nix-command" "flakes"]; + nix.settings = { + # Manual optimise storage: nix-store --optimise + # https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-auto-optimise-store + auto-optimise-store = true; + builders-use-substitutes = true; + # enable flakes globally + experimental-features = ["nix-command" "flakes"]; + }; # Allow unfree packages nixpkgs.config.allowUnfree = lib.mkDefault false;