mirror of
https://git.feal.no/felixalb/nixos-config.git
synced 2024-12-22 20:17:31 +01:00
155 lines
5.1 KiB
Nix
155 lines
5.1 KiB
Nix
{
|
|
description = "Felixalb System flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
|
|
unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
nix-darwin.url = "github:lnl7/nix-darwin/master";
|
|
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
home-manager.url = "github:nix-community/home-manager/release-23.11";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
matrix-synapse-next.url = "github:dali99/nixos-matrix-modules";
|
|
nix-minecraft.url = "github:Infinidoge/nix-minecraft";
|
|
|
|
# voyager-addons.url = "git+ssh://git@git.feal.no:2222/felixalb/voyager-addons.git";
|
|
voyager-addons.url = "git+file:///home/felixalb/voyager-addons";
|
|
|
|
sops-nix.url = "github:Mic92/sops-nix";
|
|
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = {
|
|
self
|
|
, home-manager
|
|
, matrix-synapse-next
|
|
, nix-minecraft
|
|
, nix-darwin
|
|
, nixpkgs
|
|
, sops-nix
|
|
, unstable
|
|
, voyager-addons
|
|
, ... }@inputs:
|
|
let
|
|
overlay-unstable = final: prev: {
|
|
unstable = unstable.legacyPackages.${prev.system};
|
|
};
|
|
in
|
|
{
|
|
nixosConfigurations = {
|
|
voyager = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {
|
|
inherit inputs;
|
|
};
|
|
modules = [
|
|
# Overlays-module makes "pkgs.unstable" available in configuration.nix
|
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
|
|
|
./hosts/voyager/configuration.nix
|
|
voyager-addons.nixosModules.default
|
|
sops-nix.nixosModules.sops
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users."felixalb" = import ./hosts/voyager/home.nix;
|
|
}
|
|
];
|
|
};
|
|
defiant = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {
|
|
inherit inputs;
|
|
};
|
|
modules = [
|
|
# Overlays-module makes "pkgs.unstable" available in configuration.nix
|
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
|
|
|
./hosts/defiant/configuration.nix
|
|
sops-nix.nixosModules.sops
|
|
matrix-synapse-next.nixosModules.default
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users."felixalb" = import ./hosts/defiant/home.nix;
|
|
}
|
|
];
|
|
};
|
|
edison = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {
|
|
inherit inputs;
|
|
};
|
|
modules = [
|
|
# Overlays-module makes "pkgs.unstable" available in configuration.nix
|
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
|
|
|
./hosts/edison/configuration.nix
|
|
sops-nix.nixosModules.sops
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users."felixalb" = import ./hosts/edison/home.nix;
|
|
}
|
|
];
|
|
};
|
|
burnham = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {
|
|
inherit inputs;
|
|
};
|
|
modules = [
|
|
# Overlays-module makes "pkgs.unstable" available in configuration.nix
|
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
|
|
|
./hosts/burnham/configuration.nix
|
|
sops-nix.nixosModules.sops
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users."felixalb" = import ./hosts/burnham/home.nix;
|
|
}
|
|
];
|
|
};
|
|
redshirt = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {
|
|
inherit inputs;
|
|
};
|
|
modules = [
|
|
./hosts/redshirt/configuration.nix
|
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
|
sops-nix.nixosModules.sops
|
|
];
|
|
};
|
|
};
|
|
|
|
darwinConfigurations.worf = nix-darwin.lib.darwinSystem {
|
|
system = "aarch64-darwin";
|
|
specialArgs = {
|
|
inherit inputs;
|
|
};
|
|
modules = [
|
|
./hosts/worf/configuration.nix
|
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
|
home-manager.darwinModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users."felixalb" = import ./hosts/worf/home.nix;
|
|
}
|
|
# sops-nix.nixosModules.sops
|
|
];
|
|
};
|
|
|
|
devShells.x86_64-linux = {
|
|
default = nixpkgs.legacyPackages.x86_64-linux.callPackage ./shell.nix { };
|
|
};
|
|
|
|
devShells.aarch64-darwin = {
|
|
default = nixpkgs.legacyPackages.aarch64-darwin.callPackage ./shell.nix { };
|
|
};
|
|
};
|
|
}
|