Something went wrong. Try again.
❄️ Dotfiles and NixOS configurations
Something went wrong. Try again.
1.2 kB · 40 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041{inputs, ...}: let channelPath = "/etc/nix/channels/nixpkgs";in { nix = { daemonCPUSchedPolicy = "idle"; daemonIOSchedClass = "idle"; daemonIOSchedPriority = 6; settings = { auto-optimise-store = true; experimental-features = ["nix-command" "flakes" "repl-flake" "no-url-literals"]; substituters = [ "https://cache.nixos.org" "https://cache.garnix.io" "https://nix-community.cachix.org" "https://nixpkgs-wayland.cachix.org" ]; trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA=" ]; trusted-users = ["root"]; }; gc = { automatic = true; dates = "weekly"; options = "--delete-older-than 30d"; persistent = true; }; nixPath = [ "nixpkgs=${channelPath}" ]; registry.n.flake = inputs.nixpkgs; };
systemd.tmpfiles.rules = [ "L+ ${channelPath} - - - - ${inputs.nixpkgs.outPath}" ];}