mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-04 09:36:33 +01:00
use inputs in regestary and channel
This commit is contained in:
parent
21a96ab5a5
commit
a16cda8bb7
1 changed files with 13 additions and 14 deletions
|
@ -24,26 +24,18 @@ in {
|
||||||
use-xdg-base-directories = true;
|
use-xdg-base-directories = true;
|
||||||
};
|
};
|
||||||
package = pkgs.nix;
|
package = pkgs.nix;
|
||||||
registry = {
|
registry = mkForce (lib.mapAttrs (_: flake: { inherit flake; })) ((lib.filterAttrs (_: lib.isType "flake")) self.inputs) // {
|
||||||
home-manager.flake = self.inputs.home-manager;
|
self.flake = self;
|
||||||
nixos-hardware.flake = self.inputs.nixos-hardware;
|
|
||||||
system.flake = self;
|
|
||||||
nixpkgs.to = {
|
|
||||||
type = "path";
|
|
||||||
path = pkgs.path;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
nixPath = [
|
nixPath = mkForce [ "/etc/nix/path" ];
|
||||||
"nixpkgs=${self.inputs.nixpkgs}"
|
|
||||||
"nixos-config=/etc/nixos/configuration.nix"
|
|
||||||
"/nix/var/nix/profiles/per-user/root/channels"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.etc = lib.mapAttrs' (name: value: { name = "nix/path/${name}"; value.source = value.flake; }) config.nix.registry;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
deploy-rs
|
deploy-rs
|
||||||
nixfmt
|
nixfmt
|
||||||
|
@ -65,7 +57,14 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
services.openssh.enable = true;
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
banner = "Hackers are in Your System!!!";
|
||||||
|
settings = {
|
||||||
|
PasswordAuthentication = false;
|
||||||
|
PermitRootLogin = "prohibit-password";
|
||||||
|
};
|
||||||
|
};
|
||||||
systemd.services.nix-daemon.serviceConfig.LimitNOFILE = lib.mkForce 1048576000;
|
systemd.services.nix-daemon.serviceConfig.LimitNOFILE = lib.mkForce 1048576000;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue