mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 21:39:23 +02:00
Clean up
This commit is contained in:
parent
673524b947
commit
9ad1975f72
33 changed files with 358 additions and 471 deletions
|
@ -1,20 +1,14 @@
|
|||
{ config, lib, pkgs, self, ... }:
|
||||
|
||||
let
|
||||
cfg = config.jopejoe1.nix;
|
||||
in
|
||||
{
|
||||
options.jopejoe1.nix = {
|
||||
enable = lib.mkEnableOption "Enable Nix";
|
||||
};
|
||||
let cfg = config.jopejoe1.nix;
|
||||
in {
|
||||
options.jopejoe1.nix = { enable = lib.mkEnableOption "Enable Nix"; };
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
nix = {
|
||||
settings = {
|
||||
substituters = [
|
||||
"https://cache.nixos.org"
|
||||
"https://nix-community.cachix.org"
|
||||
];
|
||||
substituters =
|
||||
[ "https://cache.nixos.org" "https://nix-community.cachix.org" ];
|
||||
trusted-public-keys = [
|
||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
|
@ -36,7 +30,11 @@ in
|
|||
nur.flake = self.inputs.nur;
|
||||
nixpkgs.flake = self.inputs.nixpkgs;
|
||||
};
|
||||
nixPath = [ "nixpkgs=${self.inputs.nixpkgs}" "nixos-config=/etc/nixos/configuration.nix" "/nix/var/nix/profiles/per-user/root/channels" ];
|
||||
nixPath = [
|
||||
"nixpkgs=${self.inputs.nixpkgs}"
|
||||
"nixos-config=/etc/nixos/configuration.nix"
|
||||
"/nix/var/nix/profiles/per-user/root/channels"
|
||||
];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue