What a clusterfuck
This commit is contained in:
parent
91f88b8bb2
commit
f29273be22
221 changed files with 779 additions and 956 deletions
46
flake.nix
46
flake.nix
|
@ -1,16 +1,20 @@
|
|||
{
|
||||
description = "Jimbo's systems as a flake";
|
||||
|
||||
inputs = {
|
||||
# Nixpkgs
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
nur.url = "github:nix-community/NUR";
|
||||
mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-24.05";
|
||||
blender-bin.url = "https://flakehub.com/f/edolstra/blender-bin/1.0.8.tar.gz";
|
||||
minecraft.url = "github:Infinidoge/nix-minecraft";
|
||||
hardware.url = "github:nixos/nixos-hardware/master";
|
||||
|
||||
# Secure boot
|
||||
lanzaboote = {
|
||||
url = "github:nix-community/lanzaboote/v0.4.1";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
# Home manager
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/release-24.05";
|
||||
|
@ -21,11 +25,12 @@
|
|||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
nixpkgs-unstable,
|
||||
unstable,
|
||||
nur,
|
||||
mailserver,
|
||||
blender-bin,
|
||||
hardware,
|
||||
lanzaboote,
|
||||
home-manager,
|
||||
...
|
||||
} @inputs: let
|
||||
|
@ -35,12 +40,16 @@
|
|||
"x86_64-linux"
|
||||
];
|
||||
in rec {
|
||||
# Your custom packages
|
||||
# Accessible through 'nix build', 'nix shell', etc
|
||||
packages = forAllSystems (system: import ./extras/pkgs nixpkgs.legacyPackages.${system});
|
||||
channels = {
|
||||
master = import nixpkgs {
|
||||
inherit (flake) system overlays;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
unstable = import unstable { inherit (flake) system; };
|
||||
nur = import nur { nurpkgs = import nixpkgs { inherit (flake) system; }; };
|
||||
};
|
||||
|
||||
# Your custom packages and modifications, exported as overlays
|
||||
overlays = import ./extras/overlays.nix {inherit inputs;};
|
||||
packages = import ./packages/default.nix { inherit (nix) pkgs; };
|
||||
|
||||
# Variables defined so they can be accessed globally
|
||||
secrets = import ./extras/secrets.nix;
|
||||
|
@ -55,27 +64,28 @@
|
|||
JimDesktop = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs outputs;};
|
||||
modules = [
|
||||
./hosts/JimDesktop/configuration.nix
|
||||
./system/hosts/JimDesktop/configuration.nix
|
||||
lanzaboote.nixosModules.lanzaboote
|
||||
];
|
||||
};
|
||||
JimServer = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs outputs;};
|
||||
modules = [
|
||||
./JimServer/configuration.nix
|
||||
./system/hosts/JimServer/configuration.nix
|
||||
mailserver.nixosModule
|
||||
];
|
||||
};
|
||||
JimPine = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs outputs;};
|
||||
modules = [
|
||||
./hosts/JimPine/configuration.nix
|
||||
./system/hosts/JimPine/configuration.nix
|
||||
hardware.nixosModules.pine64-pinebook-pro
|
||||
];
|
||||
};
|
||||
JimLenovo = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs outputs;};
|
||||
modules = [
|
||||
./hosts/JimLenovo/configuration.nix
|
||||
./system/hosts/JimLenovo/configuration.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
@ -86,7 +96,7 @@
|
|||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
extraSpecialArgs = {inherit inputs outputs;};
|
||||
modules = [
|
||||
./hosts/JimDesktop/home.nix
|
||||
./home/hosts/JimDesktop/home.nix
|
||||
nur.nixosModules.nur
|
||||
];
|
||||
};
|
||||
|
@ -94,14 +104,14 @@
|
|||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
extraSpecialArgs = {inherit inputs outputs;};
|
||||
modules = [
|
||||
./hosts/JimServer/home.nix
|
||||
./home/hosts/JimServer/home.nix
|
||||
];
|
||||
};
|
||||
"jimbo@JimPine" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.aarch64-linux;
|
||||
extraSpecialArgs = {inherit inputs outputs;};
|
||||
modules = [
|
||||
./hosts/JimPine/home.nix
|
||||
./home/hosts/JimPine/home.nix
|
||||
nur.nixosModules.nur
|
||||
];
|
||||
};
|
||||
|
@ -109,7 +119,7 @@
|
|||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
extraSpecialArgs = {inherit inputs outputs;};
|
||||
modules = [
|
||||
./hosts/JimLenovo/home.nix
|
||||
./home/hosts/JimLenovo/home.nix
|
||||
nur.nixosModules.nur
|
||||
];
|
||||
};
|
||||
|
@ -118,7 +128,7 @@
|
|||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
extraSpecialArgs = {inherit inputs outputs;};
|
||||
modules = [
|
||||
./hosts/JimTerminal/home.nix
|
||||
./home/hosts/JimTerminal/home.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue