add auto gc and alias nixpkgs to n
This commit is contained in:
parent
23b396223e
commit
915bb9ec0d
3 changed files with 29 additions and 15 deletions
27
common.nix
27
common.nix
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
nixpkgs,
|
||||
getchvim,
|
||||
...
|
||||
}: {
|
||||
boot = {
|
||||
|
@ -120,7 +120,7 @@
|
|||
vesktop
|
||||
grimblast
|
||||
playerctl
|
||||
inputs.getchvim.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||
getchvim.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||
mate.eom
|
||||
osu-lazer-bin
|
||||
];
|
||||
|
@ -165,7 +165,26 @@
|
|||
];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||
|
||||
nix = {
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "3d";
|
||||
options = "-d";
|
||||
};
|
||||
|
||||
settings = {
|
||||
auto-optimise-store = true;
|
||||
experimental-features = ["nix-command" "flakes"];
|
||||
};
|
||||
};
|
||||
|
||||
nix.registry = let
|
||||
nixpkgsRegistry.flake = nixpkgs;
|
||||
in {
|
||||
nixpkgs = nixpkgsRegistry;
|
||||
n = nixpkgsRegistry;
|
||||
};
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
|
|
10
flake.nix
10
flake.nix
|
@ -10,19 +10,19 @@
|
|||
};
|
||||
};
|
||||
|
||||
outputs = inputs: {
|
||||
nixosConfigurations.fuji = inputs.nixpkgs.lib.nixosSystem {
|
||||
outputs = {nixpkgs, ...} @ inputs: {
|
||||
nixosConfigurations.fuji = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [./fuji.nix];
|
||||
specialArgs = {inherit inputs;};
|
||||
specialArgs = inputs;
|
||||
};
|
||||
|
||||
nixosConfigurations.kilimandjaro = inputs.nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [./kilimandjaro.nix];
|
||||
specialArgs = {inherit inputs;};
|
||||
specialArgs = inputs;
|
||||
};
|
||||
|
||||
formatter.x86_64-linux = inputs.nixpkgs.legacyPackages.x86_64-linux.alejandra;
|
||||
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,9 +1,4 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
{...}: {
|
||||
imports = [
|
||||
./common.nix
|
||||
./hardware/kilimandjaro.nix
|
||||
|
|
Loading…
Reference in a new issue