Changes to the flake, thanks Jules
This commit is contained in:
parent
35dabb4249
commit
87fbcda3d3
57
flake.nix
57
flake.nix
|
@ -33,13 +33,8 @@
|
||||||
lanzaboote,
|
lanzaboote,
|
||||||
home-manager,
|
home-manager,
|
||||||
...
|
...
|
||||||
} @inputs: let
|
} @inputs:
|
||||||
inherit (self) outputs;
|
let
|
||||||
forAllSystems = nixpkgs.lib.genAttrs [
|
|
||||||
"aarch64-linux"
|
|
||||||
"x86_64-linux"
|
|
||||||
];
|
|
||||||
in rec {
|
|
||||||
channels = {
|
channels = {
|
||||||
master = import nixpkgs {
|
master = import nixpkgs {
|
||||||
inherit (flake) system overlays;
|
inherit (flake) system overlays;
|
||||||
|
@ -49,41 +44,53 @@
|
||||||
nur = import nur { nurpkgs = import nixpkgs { inherit (flake) system; }; };
|
nur = import nur { nurpkgs = import nixpkgs { inherit (flake) system; }; };
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = import ./packages/default.nix { inherit (nix) pkgs; };
|
flake = {
|
||||||
|
overlays = [
|
||||||
# Variables defined so they can be accessed globally
|
nur.overlay
|
||||||
secrets = import ./extras/secrets.nix;
|
minecraft.overlay
|
||||||
cmd = import ./extras/cmd.nix;
|
(import ./overlays/mpv { inherit (self) inputs channels; })
|
||||||
displays = import ./extras/displays.nix;
|
];
|
||||||
ips = import ./extras/ips.nix;
|
packages = import ./packages/default.nix { inherit (nix) pkgs; };
|
||||||
look = import ./extras/look.nix;
|
secrets = import ./extras/secrets.nix;
|
||||||
ws = import ./extras/workspaces.nix;
|
cmd = import ./extras/cmd.nix;
|
||||||
|
displays = import ./extras/displays.nix;
|
||||||
|
ips = import ./extras/ips.nix;
|
||||||
|
look = import ./extras/look.nix;
|
||||||
|
ws = import ./extras/workspaces.nix;
|
||||||
|
};
|
||||||
|
|
||||||
|
nix = rec {
|
||||||
|
pkgs = channels.master // flake.packages;
|
||||||
|
inherit (pkgs) lib;
|
||||||
|
inherit (flake) channels-config;
|
||||||
|
};
|
||||||
|
in {
|
||||||
# NixOS config entrypoint, use 'nixos-rebuild --flake .#your-hostname'
|
# NixOS config entrypoint, use 'nixos-rebuild --flake .#your-hostname'
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
JimDesktop = nixpkgs.lib.nixosSystem {
|
JimDesktop = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {inherit inputs outputs;};
|
inherit (nix) pkgs;
|
||||||
|
specialArgs = { inherit inputs outputs; };
|
||||||
modules = [
|
modules = [
|
||||||
./system/hosts/JimDesktop/configuration.nix
|
./system/hosts/JimDesktop/configuration.nix
|
||||||
lanzaboote.nixosModules.lanzaboote
|
lanzaboote.nixosModules.lanzaboote
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
JimServer = nixpkgs.lib.nixosSystem {
|
JimServer = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {inherit inputs outputs;};
|
specialArgs = { inherit inputs outputs; };
|
||||||
modules = [
|
modules = [
|
||||||
./system/hosts/JimServer/configuration.nix
|
./system/hosts/JimServer/configuration.nix
|
||||||
mailserver.nixosModule
|
mailserver.nixosModule
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
JimPine = nixpkgs.lib.nixosSystem {
|
JimPine = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {inherit inputs outputs;};
|
specialArgs = { inherit inputs outputs; };
|
||||||
modules = [
|
modules = [
|
||||||
./system/hosts/JimPine/configuration.nix
|
./system/hosts/JimPine/configuration.nix
|
||||||
hardware.nixosModules.pine64-pinebook-pro
|
hardware.nixosModules.pine64-pinebook-pro
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
JimLenovo = nixpkgs.lib.nixosSystem {
|
JimLenovo = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {inherit inputs outputs;};
|
specialArgs = { inherit inputs outputs; };
|
||||||
modules = [
|
modules = [
|
||||||
./system/hosts/JimLenovo/configuration.nix
|
./system/hosts/JimLenovo/configuration.nix
|
||||||
];
|
];
|
||||||
|
@ -94,7 +101,7 @@
|
||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
"jimbo@JimDesktop" = home-manager.lib.homeManagerConfiguration {
|
"jimbo@JimDesktop" = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||||
extraSpecialArgs = {inherit inputs outputs;};
|
extraSpecialArgs = { inherit inputs outputs; };
|
||||||
modules = [
|
modules = [
|
||||||
./home/hosts/JimDesktop/home.nix
|
./home/hosts/JimDesktop/home.nix
|
||||||
nur.nixosModules.nur
|
nur.nixosModules.nur
|
||||||
|
@ -102,14 +109,14 @@
|
||||||
};
|
};
|
||||||
"jimbo@JimServer" = home-manager.lib.homeManagerConfiguration {
|
"jimbo@JimServer" = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||||
extraSpecialArgs = {inherit inputs outputs;};
|
extraSpecialArgs = { inherit inputs outputs; };
|
||||||
modules = [
|
modules = [
|
||||||
./home/hosts/JimServer/home.nix
|
./home/hosts/JimServer/home.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
"jimbo@JimPine" = home-manager.lib.homeManagerConfiguration {
|
"jimbo@JimPine" = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = nixpkgs.legacyPackages.aarch64-linux;
|
pkgs = nixpkgs.legacyPackages.aarch64-linux;
|
||||||
extraSpecialArgs = {inherit inputs outputs;};
|
extraSpecialArgs = { inherit inputs outputs; };
|
||||||
modules = [
|
modules = [
|
||||||
./home/hosts/JimPine/home.nix
|
./home/hosts/JimPine/home.nix
|
||||||
nur.nixosModules.nur
|
nur.nixosModules.nur
|
||||||
|
@ -117,7 +124,7 @@
|
||||||
};
|
};
|
||||||
"jimbo@JimLenovo" = home-manager.lib.homeManagerConfiguration {
|
"jimbo@JimLenovo" = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||||
extraSpecialArgs = {inherit inputs outputs;};
|
extraSpecialArgs = { inherit inputs outputs; };
|
||||||
modules = [
|
modules = [
|
||||||
./home/hosts/JimLenovo/home.nix
|
./home/hosts/JimLenovo/home.nix
|
||||||
nur.nixosModules.nur
|
nur.nixosModules.nur
|
||||||
|
@ -126,7 +133,7 @@
|
||||||
# Derivation for ssh envrionments on other people's servers
|
# Derivation for ssh envrionments on other people's servers
|
||||||
"jimbo@JimTerminal" = home-manager.lib.homeManagerConfiguration {
|
"jimbo@JimTerminal" = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||||
extraSpecialArgs = {inherit inputs outputs;};
|
extraSpecialArgs = { inherit inputs outputs; };
|
||||||
modules = [
|
modules = [
|
||||||
./home/hosts/JimTerminal/home.nix
|
./home/hosts/JimTerminal/home.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
./servers/uberbeta
|
./servers/uberbeta
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.overlays = [ inputs.minecraft.overlay ];
|
|
||||||
|
|
||||||
services.minecraft-servers = {
|
services.minecraft-servers = {
|
||||||
enable = true;
|
enable = true;
|
||||||
eula = true;
|
eula = true;
|
||||||
|
|
Loading…
Reference in a new issue