summaryrefslogtreecommitdiff
path: root/hosts/profiles.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/profiles.nix')
-rw-r--r--hosts/profiles.nix74
1 files changed, 46 insertions, 28 deletions
diff --git a/hosts/profiles.nix b/hosts/profiles.nix
index 4e6d019..83f2a6c 100644
--- a/hosts/profiles.nix
+++ b/hosts/profiles.nix
@@ -1,12 +1,43 @@
{
inputs,
self,
-}: {
+}: let
+ common = {
+ nixpkgs = {
+ overlays = with inputs; [nur.overlay getchoo.overlays.default self.overlays.default];
+ config.allowUnfree = true;
+ };
+
+ nix = {
+ registry = with inputs; {
+ getchoo.flake = getchoo;
+ nixpkgs.flake = nixpkgs;
+ };
+
+ settings = {
+ trusted-substituters = [
+ "https://getchoo.cachix.org"
+ "https://cache.garnix.io"
+ "https://nix-community.cachix.org"
+ "https://wurzelpfropf.cachix.org"
+ ];
+
+ trusted-public-keys = [
+ "getchoo.cachix.org-1:ftdbAUJVNaFonM0obRGgR5+nUmdLMM+AOvDOSx0z5tE="
+ "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
+ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
+ "wurzelpfropf.cachix.org-1:ilZwK5a6wJqVr7Fyrzp4blIEkGK+LJT0QrpWr1qBNq0="
+ ];
+ };
+ };
+ };
+in {
personal = {
system = "x86_64-linux";
builder = inputs.nixpkgs.lib.nixosSystem;
modules = with inputs; [
+ common
ragenix.nixosModules.default
home-manager.nixosModules.home-manager
nur.nixosModules.nur
@@ -25,36 +56,23 @@
};
};
- nixpkgs = {
- overlays = with inputs; [nur.overlay getchoo.overlays.default self.overlays.default];
- config.allowUnfree = true;
- };
-
- nix = {
- registry = {
- getchoo.flake = getchoo;
- nixpkgs.flake = nixpkgs;
- };
+ getchoo.base.enable = true;
+ system.stateVersion = "23.11";
+ }
+ ];
- settings = {
- trusted-substituters = [
- "https://getchoo.cachix.org"
- "https://cache.garnix.io"
- "https://nix-community.cachix.org"
- "https://wurzelpfropf.cachix.org"
- ];
-
- trusted-public-keys = [
- "getchoo.cachix.org-1:ftdbAUJVNaFonM0obRGgR5+nUmdLMM+AOvDOSx0z5tE="
- "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
- "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
- "wurzelpfropf.cachix.org-1:ilZwK5a6wJqVr7Fyrzp4blIEkGK+LJT0QrpWr1qBNq0="
- ];
- };
- };
+ specialArgs = inputs;
+ };
+ personal-darwin = {
+ builder = inputs.darwin.lib.darwinSystem;
+ modules = with inputs; [
+ common
+ home-manager.darwinModules.home-manager
+ self.darwinModules.getchoo
+ {
getchoo.base.enable = true;
- system.stateVersion = "23.11";
+ system.stateVersion = 4;
}
];