2023-01-20 20:21:16 +01:00
|
|
|
{
|
|
|
|
description = "Felixalb System flake";
|
|
|
|
|
|
|
|
inputs = {
|
2023-12-16 17:38:22 +01:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
|
2023-08-13 10:33:41 +02:00
|
|
|
unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2023-07-26 10:48:52 +02:00
|
|
|
|
2023-07-26 09:06:51 +02:00
|
|
|
nix-darwin.url = "github:lnl7/nix-darwin/master";
|
|
|
|
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
2023-01-20 20:21:16 +01:00
|
|
|
|
2023-12-16 17:38:22 +01:00
|
|
|
home-manager.url = "github:nix-community/home-manager/release-23.11";
|
2023-07-26 10:48:52 +02:00
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
2023-08-14 08:37:20 +02:00
|
|
|
matrix-synapse-next.url = "github:dali99/nixos-matrix-modules";
|
|
|
|
|
2023-10-15 03:51:20 +02:00
|
|
|
voyager-addons.url = "git+ssh://git@git.feal.no:2222/felixalb/voyager-addons.git";
|
|
|
|
|
2023-04-15 20:44:47 +02:00
|
|
|
sops-nix.url = "github:Mic92/sops-nix";
|
|
|
|
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
2023-01-20 20:21:16 +01:00
|
|
|
};
|
|
|
|
|
2023-08-14 08:37:20 +02:00
|
|
|
outputs = {
|
|
|
|
self
|
|
|
|
, home-manager
|
|
|
|
, matrix-synapse-next
|
2023-08-18 19:06:07 +02:00
|
|
|
, nix-darwin
|
|
|
|
, nixpkgs
|
2023-08-14 08:37:20 +02:00
|
|
|
, sops-nix
|
2023-08-18 19:06:07 +02:00
|
|
|
, unstable
|
2023-10-15 03:51:20 +02:00
|
|
|
, voyager-addons
|
2023-08-14 08:37:20 +02:00
|
|
|
, ... }@inputs:
|
2023-01-20 20:21:16 +01:00
|
|
|
let
|
2023-05-11 14:34:13 +02:00
|
|
|
overlay-unstable = final: prev: {
|
|
|
|
unstable = unstable.legacyPackages.${prev.system};
|
|
|
|
};
|
2023-01-20 20:21:16 +01:00
|
|
|
in
|
|
|
|
{
|
|
|
|
nixosConfigurations = {
|
2023-04-15 20:44:47 +02:00
|
|
|
voyager = nixpkgs.lib.nixosSystem {
|
2023-07-26 09:06:51 +02:00
|
|
|
system = "x86_64-linux";
|
2023-04-15 20:44:47 +02:00
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
};
|
|
|
|
modules = [
|
2023-05-11 14:34:13 +02:00
|
|
|
# Overlays-module makes "pkgs.unstable" available in configuration.nix
|
|
|
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
|
|
|
|
2023-04-15 20:44:47 +02:00
|
|
|
./hosts/voyager/configuration.nix
|
2023-10-15 03:51:20 +02:00
|
|
|
voyager-addons.nixosModules.default
|
2023-04-15 20:44:47 +02:00
|
|
|
sops-nix.nixosModules.sops
|
|
|
|
];
|
|
|
|
};
|
2023-09-13 23:40:50 +02:00
|
|
|
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
|
2023-09-15 00:21:07 +02:00
|
|
|
home-manager.nixosModules.home-manager {
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users."felixalb" = import ./hosts/edison/home.nix;
|
|
|
|
}
|
2023-09-13 23:40:50 +02:00
|
|
|
];
|
|
|
|
};
|
2023-10-03 01:25:33 +02:00
|
|
|
sarek = 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/sarek/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/sarek/home.nix;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2023-10-14 01:22:32 +02:00
|
|
|
janeway = 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/janeway/configuration.nix
|
|
|
|
sops-nix.nixosModules.sops
|
|
|
|
matrix-synapse-next.nixosModules.default
|
|
|
|
];
|
|
|
|
};
|
2023-03-01 12:29:05 +01:00
|
|
|
redshirt = nixpkgs.lib.nixosSystem {
|
2023-07-26 09:06:51 +02:00
|
|
|
system = "x86_64-linux";
|
2023-03-01 12:29:05 +01:00
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
};
|
|
|
|
modules = [
|
2023-05-26 13:48:43 +02:00
|
|
|
./hosts/redshirt/configuration.nix
|
|
|
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
|
|
|
sops-nix.nixosModules.sops
|
2023-03-01 12:29:05 +01:00
|
|
|
];
|
|
|
|
};
|
2023-01-20 20:21:16 +01:00
|
|
|
};
|
2023-04-23 14:27:27 +02:00
|
|
|
|
2023-07-26 09:06:51 +02:00
|
|
|
darwinConfigurations.worf = nix-darwin.lib.darwinSystem {
|
|
|
|
system = "aarch64-darwin";
|
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
};
|
|
|
|
modules = [
|
|
|
|
./hosts/worf/configuration.nix
|
2023-07-26 10:48:52 +02:00
|
|
|
({ 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;
|
|
|
|
}
|
2023-07-26 09:06:51 +02:00
|
|
|
# sops-nix.nixosModules.sops
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-04-23 14:27:27 +02:00
|
|
|
devShells.x86_64-linux = {
|
|
|
|
default = nixpkgs.legacyPackages.x86_64-linux.callPackage ./shell.nix { };
|
|
|
|
};
|
2023-07-26 15:22:24 +02:00
|
|
|
|
|
|
|
devShells.aarch64-darwin = {
|
|
|
|
default = nixpkgs.legacyPackages.aarch64-darwin.callPackage ./shell.nix { };
|
|
|
|
};
|
2023-01-20 20:21:16 +01:00
|
|
|
};
|
|
|
|
}
|