mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 11:07:44 +00:00
Remove dep duplication
This commit is contained in:
parent
45efed900e
commit
d7610f2455
4 changed files with 293 additions and 624 deletions
758
flake.lock
generated
758
flake.lock
generated
File diff suppressed because it is too large
Load diff
129
flake.nix
129
flake.nix
|
@ -1,62 +1,32 @@
|
||||||
{
|
{
|
||||||
description = "All my NixOS configurations.";
|
description = "RGBCube's NixOS Configuration Collection";
|
||||||
|
|
||||||
nixConfig = {
|
nixConfig = {
|
||||||
extra-substituters = [
|
extra-substituters = "https://cache.garnix.io/";
|
||||||
"https://cache.garnix.io/"
|
extra-trusted-public-keys = "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=";
|
||||||
# "https://cache.privatevoid.net/"
|
|
||||||
"https://ghostty.cachix.org/"
|
|
||||||
"https://hyprland.cachix.org/"
|
|
||||||
"https://nix-community.cachix.org/"
|
|
||||||
];
|
|
||||||
|
|
||||||
extra-trusted-public-keys = [
|
|
||||||
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
|
||||||
"cache.privatevoid.net-1:SErQ8bvNWANeAvtsOESUwVYr2VJynfuc9JRwlzTTkVg="
|
|
||||||
"ghostty.cachix.org-1:QB389yTa6gTyneehvqG58y0WnHjQOqgnA+wBnpWWxns="
|
|
||||||
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs";
|
||||||
|
|
||||||
nixSuper = {
|
nixSuper = {
|
||||||
url = "github:privatevoid-net/nix-super";
|
url = "github:privatevoid-net/nix-super";
|
||||||
};
|
|
||||||
|
|
||||||
nixpkgs = {
|
inputs.flake-compat.follows = "flakeCompat";
|
||||||
url = "github:NixOS/nixpkgs/nixos-unstable";
|
# inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
homeManager = {
|
homeManager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
agenix = {
|
ageNix = {
|
||||||
url = "github:ryantm/agenix";
|
url = "github:ryantm/agenix";
|
||||||
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
inputs.home-manager.follows = "homeManager";
|
||||||
|
|
||||||
mail = {
|
|
||||||
url = "gitlab:simple-nixos-mailserver/nixos-mailserver";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
hyprland = {
|
|
||||||
url = "github:hyprwm/Hyprland";
|
|
||||||
};
|
|
||||||
|
|
||||||
hyprpicker = {
|
|
||||||
url = "github:hyprwm/hyprpicker";
|
|
||||||
};
|
|
||||||
|
|
||||||
ghostty = {
|
|
||||||
url = "git+ssh://git@github.com/mitchellh/ghostty";
|
|
||||||
};
|
|
||||||
|
|
||||||
ghosttyModule = {
|
|
||||||
url = "github:clo4/ghostty-hm-module";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nuScripts = {
|
nuScripts = {
|
||||||
|
@ -64,30 +34,91 @@
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
simpleMail = {
|
||||||
|
url = "gitlab:simple-nixos-mailserver/nixos-mailserver";
|
||||||
|
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
inputs.utils.follows = "flakeUtils";
|
||||||
|
inputs.flake-compat.follows = "flakeCompat";
|
||||||
|
};
|
||||||
|
|
||||||
|
hyprland = {
|
||||||
|
url = "github:hyprwm/Hyprland";
|
||||||
|
|
||||||
|
inputs.hyprlang.follows = "hyprlang";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
inputs.systems.follows = "systems";
|
||||||
|
};
|
||||||
|
|
||||||
|
hyprpicker = {
|
||||||
|
url = "github:hyprwm/hyprpicker";
|
||||||
|
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
ghostty = {
|
||||||
|
url = "git+ssh://git@github.com/RGBCube/ghostty";
|
||||||
|
|
||||||
|
inputs.nixpkgs-unstable.follows = "nixpkgs";
|
||||||
|
inputs.nixpkgs-stable.follows = "nixpkgs";
|
||||||
|
|
||||||
|
inputs.zig.follows = "zig";
|
||||||
|
inputs.zls.follows = "zig";
|
||||||
|
};
|
||||||
|
|
||||||
fenix = {
|
fenix = {
|
||||||
url = "github:nix-community/fenix";
|
url = "github:nix-community/fenix";
|
||||||
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
zig = {
|
zig = {
|
||||||
url = "github:mitchellh/zig-overlay";
|
url = "github:mitchellh/zig-overlay";
|
||||||
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
inputs.flake-utils.follows = "flakeUtils";
|
||||||
|
inputs.flake-compat.follows = "flakeCompat";
|
||||||
};
|
};
|
||||||
|
|
||||||
zls = {
|
zls = {
|
||||||
url = "github:zigtools/zls";
|
url = "github:zigtools/zls/master";
|
||||||
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
inputs.flake-utils.follows = "flakeUtils";
|
||||||
|
inputs.zig-overlay.follows = "zig";
|
||||||
};
|
};
|
||||||
|
|
||||||
themes = {
|
ghosttyModule.url = "github:clo4/ghostty-hm-module";
|
||||||
url = "github:RGBCube/ThemeNix";
|
|
||||||
|
themes.url = "github:RGBCube/ThemeNix";
|
||||||
|
|
||||||
|
# I don't use these, but I place them here and make the other
|
||||||
|
# inputs follow them, so I get much less duplicate code pulled in.
|
||||||
|
flakeUtils = {
|
||||||
|
url = "github:numtide/flake-utils";
|
||||||
|
|
||||||
|
inputs.systems.follows = "systems";
|
||||||
|
};
|
||||||
|
|
||||||
|
flakeCompat = {
|
||||||
|
url = "github:edolstra/flake-compat";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
systems.url = "github:nix-systems/default";
|
||||||
|
|
||||||
|
hyprlang = {
|
||||||
|
url = "github:hyprwm/hyprlang";
|
||||||
|
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
inputs.systems.follows = "systems";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
agenix,
|
ageNix,
|
||||||
mail,
|
simpleMail,
|
||||||
homeManager,
|
homeManager,
|
||||||
themes,
|
themes,
|
||||||
...
|
...
|
||||||
|
@ -120,7 +151,7 @@
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
upkgs = let
|
upkgs = let
|
||||||
defaults = lib.genAttrs
|
defaults = lib.genAttrs
|
||||||
[ "nixSuper" "agenix" "hyprland" "hyprpicker" "ghostty" "zls" ]
|
[ "nixSuper" "ageNix" "hyprland" "hyprpicker" "ghostty" "zls" ]
|
||||||
(name: inputs.${name}.packages.${system}.default);
|
(name: inputs.${name}.packages.${system}.default);
|
||||||
|
|
||||||
other = {
|
other = {
|
||||||
|
@ -183,10 +214,10 @@
|
||||||
in [
|
in [
|
||||||
homeManager.nixosModules.default
|
homeManager.nixosModules.default
|
||||||
|
|
||||||
agenix.nixosModules.default
|
ageNix.nixosModules.default
|
||||||
./secrets
|
./secrets
|
||||||
|
|
||||||
mail.nixosModules.default
|
simpleMail.nixosModules.default
|
||||||
|
|
||||||
defaultConfiguration
|
defaultConfiguration
|
||||||
] ++ (importDirectory ./hosts/${host})
|
] ++ (importDirectory ./hosts/${host})
|
||||||
|
|
|
@ -13,6 +13,8 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
(systemConfiguration {
|
(systemConfiguration {
|
||||||
|
environment.etc."flakes".text = builtins.toJSON inputs;
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
gc = {
|
gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
|
@ -27,10 +29,11 @@
|
||||||
|
|
||||||
package = upkgs.nixSuper;
|
package = upkgs.nixSuper;
|
||||||
|
|
||||||
registry = (builtins.mapAttrs
|
registry = {
|
||||||
(_: value: lib.mkIf (value ? sourceInfo) {
|
default.flake = inputs.nixpkgs;
|
||||||
|
} // builtins.mapAttrs (_: value: lib.mkIf (lib.isType "flake" value) {
|
||||||
flake = value;
|
flake = value;
|
||||||
}) inputs) // { default.flake = inputs.nixpkgs; };
|
}) inputs;
|
||||||
|
|
||||||
settings.experimental-features = [
|
settings.experimental-features = [
|
||||||
"auto-allocate-uids"
|
"auto-allocate-uids"
|
||||||
|
@ -48,6 +51,7 @@
|
||||||
settings = {
|
settings = {
|
||||||
accept-flake-config = true;
|
accept-flake-config = true;
|
||||||
builders-use-substitutes = true;
|
builders-use-substitutes = true;
|
||||||
|
flake-registry = ""; # I DON'T WANT THE GLOBAL REGISTRY!!!
|
||||||
http-connections = 50;
|
http-connections = 50;
|
||||||
trusted-users = [ "root" "@wheel" ];
|
trusted-users = [ "root" "@wheel" ];
|
||||||
use-cgroups = true;
|
use-cgroups = true;
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
]))
|
]))
|
||||||
|
|
||||||
(desktopSystemPackages (with pkgs; [
|
(desktopSystemPackages (with pkgs; [
|
||||||
upkgs.agenix
|
upkgs.ageNix
|
||||||
|
|
||||||
clang_16
|
clang_16
|
||||||
clang-tools_16
|
clang-tools_16
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue