keep-output/derivations

This commit is contained in:
Gerg-L 2023-04-28 06:27:02 -04:00
parent 34eab4b2e7
commit 0352672d69
4 changed files with 22 additions and 17 deletions

27
flake.lock generated
View file

@ -141,11 +141,11 @@
}, },
"master": { "master": {
"locked": { "locked": {
"lastModified": 1682616090, "lastModified": 1682651240,
"narHash": "sha256-29fV+jLRbo7WtLx0rQ7nxYkjTdU7KDWbtC9hOLWk3S4=", "narHash": "sha256-l9V0ViPf1Vhq14Vv7QQGeLrDceqdAZKZTrTU2puDZe4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "938afbb96edba3dd28065f5f2d42a86e9714bab3", "rev": "35ef6d71d18e1a0426781375e1c425d5bad4412f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -167,17 +167,18 @@
}, },
"locked": { "locked": {
"dir": "contrib", "dir": "contrib",
"lastModified": 1681647379, "lastModified": 1682581904,
"narHash": "sha256-fFbZCq3knW1G0G+gu5ifuUkVIotvfLBEy/VzFNts9h8=", "narHash": "sha256-9P4T2erXXrPxXTTLgD29U/IdKCOYqP4xbwdYswtVBA8=",
"owner": "neovim", "owner": "neovim",
"repo": "neovim", "repo": "neovim",
"rev": "55d346fc2683a18256320eaae75eb4f3137dcced", "rev": "d321deb4a9b05e9d81b79ac166274f4a6e7981bf",
"type": "github" "type": "github"
}, },
"original": { "original": {
"dir": "contrib", "dir": "contrib",
"owner": "neovim", "owner": "neovim",
"repo": "neovim", "repo": "neovim",
"rev": "d321deb4a9b05e9d81b79ac166274f4a6e7981bf",
"type": "github" "type": "github"
} }
}, },
@ -189,17 +190,17 @@
"nixpkgs-regression": "nixpkgs-regression" "nixpkgs-regression": "nixpkgs-regression"
}, },
"locked": { "locked": {
"lastModified": 1681477996, "lastModified": 1682437013,
"narHash": "sha256-F/u5BeTzvoNR7pFBl08PJC2RvVNw10YL1lZf1K0u9WU=", "narHash": "sha256-4xiFigiJtSIK17t008X0iA+FxhXDa1RjUAJ1dqvHyy8=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nix", "repo": "nix",
"rev": "b41f73906896b02b8ffa3f9ea4ea8a18a61a34e0", "rev": "946fd29422361e8478425d6aaf9ccae23d7ddffb",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"repo": "nix", "repo": "nix",
"rev": "b41f73906896b02b8ffa3f9ea4ea8a18a61a34e0", "rev": "946fd29422361e8478425d6aaf9ccae23d7ddffb",
"type": "github" "type": "github"
} }
}, },
@ -296,11 +297,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1681686079, "lastModified": 1682651256,
"narHash": "sha256-gZ2H5l6CETvvbL7cr/Y3WdjEoq2BuPJ5Jl/VaSvA1P0=", "narHash": "sha256-mByjRdt4iq5Dh5wnpEM+3+LW6zB4JV8SJfgD4FMnVMw=",
"owner": "Gerg-L", "owner": "Gerg-L",
"repo": "nvim-flake", "repo": "nvim-flake",
"rev": "3db196a7827e511a245b44e44d121e0c91d6c4e1", "rev": "a0a27c2960534748fc0673f19d2f20307f977fa6",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -5,7 +5,7 @@
unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
stable.url = "github:NixOS/nixpkgs/nixos-22.11"; stable.url = "github:NixOS/nixpkgs/nixos-22.11";
#nix 2.16 #nix 2.16
nix.url = "github:NixOS/nix/b41f73906896b02b8ffa3f9ea4ea8a18a61a34e0"; nix.url = "github:NixOS/nix/946fd29422361e8478425d6aaf9ccae23d7ddffb";
#utilites #utilites
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
nixos-generators = { nixos-generators = {

View file

@ -13,6 +13,8 @@ _: {
lib.mkIf config.localModules.remoteBuild.enable { lib.mkIf config.localModules.remoteBuild.enable {
nix = { nix = {
settings = { settings = {
keep-outputs = false;
keep-derivations = false;
builders-use-substitutes = true; builders-use-substitutes = true;
max-jobs = 0; max-jobs = 0;
}; };
@ -53,7 +55,11 @@ _: {
}; };
}; };
nix.settings.trusted-users = ["builder"]; nix.settings = {
trusted-users = ["builder"];
keep-outputs = true;
keep-derivations = true;
};
}) })
]; ];
} }

View file

@ -37,8 +37,6 @@ in {
warn-dirty = false; warn-dirty = false;
#ignore global registry #ignore global registry
flake-registry = builtins.toFile "empty-flake-registry.json" ''{"flakes":[],"version":2}''; flake-registry = builtins.toFile "empty-flake-registry.json" ''{"flakes":[],"version":2}'';
keep-outputs = true;
keep-derivations = true;
#become stable faster stupid #become stable faster stupid
use-xdg-base-directories = true; use-xdg-base-directories = true;
trusted-users = [ trusted-users = [