refactor
This commit is contained in:
parent
e308af714b
commit
39f93ece86
2 changed files with 15 additions and 11 deletions
|
@ -1,19 +1,24 @@
|
||||||
{nixpkgs, ...}: {
|
{
|
||||||
|
nixpkgs,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
environment.etc."nix/inputs/nixpkgs".source = nixpkgs.outPath;
|
environment.etc."nix/inputs/nixpkgs".source = nixpkgs.outPath;
|
||||||
nix = {
|
nix = {
|
||||||
|
package = pkgs.nixFlakes;
|
||||||
nixPath = ["nixpkgs=/etc/nix/inputs/nixpkgs"];
|
nixPath = ["nixpkgs=/etc/nix/inputs/nixpkgs"];
|
||||||
registry.nixpkgs.flake = nixpkgs;
|
registry.nixpkgs.flake = nixpkgs;
|
||||||
settings = {
|
settings = {
|
||||||
|
auto-optimise-store = true;
|
||||||
|
experimental-features = ["nix-command" "flakes" "auto-allocate-uids" "cgroups" "ca-derivations"];
|
||||||
|
auto-allocate-uids = true;
|
||||||
|
use-cgroups = true;
|
||||||
trusted-substituters = [
|
trusted-substituters = [
|
||||||
"https://nix-community.cachix.org/"
|
"https://nix-community.cachix.org/"
|
||||||
];
|
];
|
||||||
trusted-public-keys = [
|
trusted-public-keys = [
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
];
|
];
|
||||||
auto-optimise-store = true;
|
|
||||||
experimental-features = ["nix-command" "flakes" "auto-allocate-uids" "cgroups" "ca-derivations"];
|
|
||||||
auto-allocate-uids = true;
|
|
||||||
use-cgroups = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
11
flake.nix
11
flake.nix
|
@ -40,6 +40,9 @@
|
||||||
nixvim,
|
nixvim,
|
||||||
} @ inputs: let
|
} @ inputs: let
|
||||||
secrets = import ./secrets.nix;
|
secrets = import ./secrets.nix;
|
||||||
|
config = {
|
||||||
|
allowUnfree = true;
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
@ -47,9 +50,7 @@
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
config = {
|
inherit config;
|
||||||
allowUnfree = true;
|
|
||||||
};
|
|
||||||
overlays = [(import ./packages)];
|
overlays = [(import ./packages)];
|
||||||
};
|
};
|
||||||
specialArgs = inputs // {inherit secrets;};
|
specialArgs = inputs // {inherit secrets;};
|
||||||
|
@ -85,9 +86,7 @@
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
config = {
|
inherit config;
|
||||||
allowUnfree = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
specialArgs = inputs // {inherit secrets;};
|
specialArgs = inputs // {inherit secrets;};
|
||||||
modules = [
|
modules = [
|
||||||
|
|
Loading…
Reference in a new issue