mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 07:04:47 +00:00
optimize flake shape and add devshell
This commit is contained in:
parent
f3d61787f0
commit
6dfef30594
8 changed files with 202 additions and 121 deletions
|
|
@ -11,6 +11,7 @@ in {
|
|||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./disk-config.nix
|
||||
../../modules/base.nix
|
||||
];
|
||||
|
||||
boot.loader.grub = {
|
||||
|
|
@ -52,35 +53,12 @@ in {
|
|||
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
||||
programs.zsh.enable = true;
|
||||
environment.shells = [pkgs.zsh];
|
||||
nix.settings.trusted-users = lib.mkForce [
|
||||
"root"
|
||||
username
|
||||
];
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "nvim";
|
||||
VISUAL = "nvim";
|
||||
};
|
||||
|
||||
nix.settings = {
|
||||
auto-optimise-store = true;
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
trusted-users = [
|
||||
"root"
|
||||
username
|
||||
];
|
||||
};
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 14d";
|
||||
};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.systemPackages = packageSets.core ++ packageSets.extras ++ [
|
||||
environment.systemPackages = packageSets.extras ++ [
|
||||
pkgs.bubblewrap
|
||||
pkgs.pnpm
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue