2023-01-20 20:21:16 +01:00
|
|
|
{
|
|
|
|
description = "Felixalb System flake";
|
|
|
|
|
|
|
|
inputs = {
|
2024-12-01 09:33:16 +01:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
2024-10-06 02:58:51 +02:00
|
|
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2024-09-23 14:23:22 +02:00
|
|
|
nixpkgs-2211.url = "https://github.com/NixOS/nixpkgs/archive/34bfa9403e42eece93d1a3740e9d8a02fceafbca.tar.gz"; # old nixpgks for e.g. remmina
|
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
|
|
|
|
2024-12-01 09:33:16 +01:00
|
|
|
home-manager.url = "github:nix-community/home-manager/release-24.11";
|
2023-07-26 10:48:52 +02:00
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
2024-06-02 01:57:03 +02:00
|
|
|
matrix-synapse-next.url = "github:dali99/nixos-matrix-modules/v0.6.0";
|
2023-12-29 23:44:37 +01:00
|
|
|
nix-minecraft.url = "github:Infinidoge/nix-minecraft";
|
2024-12-11 10:56:13 +01:00
|
|
|
hyprswitch.url = "github:H3rmt/hyprswitch/v3.1.3";
|
|
|
|
hyprswitch.inputs.nixpkgs.follows = "nixpkgs";
|
2023-08-14 08:37:20 +02:00
|
|
|
|
2024-07-05 23:06:11 +02:00
|
|
|
extra-config.url = "git+file:///home/felixalb/nix-extra-config";
|
2023-10-15 03:51:20 +02:00
|
|
|
|
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
|
2024-12-11 10:56:13 +01:00
|
|
|
, hyprswitch
|
2023-08-14 08:37:20 +02:00
|
|
|
, matrix-synapse-next
|
2023-12-29 23:44:37 +01:00
|
|
|
, nix-minecraft
|
2023-08-18 19:06:07 +02:00
|
|
|
, nix-darwin
|
|
|
|
, nixpkgs
|
2024-09-23 14:23:22 +02:00
|
|
|
, nixpkgs-2211
|
2024-10-06 02:58:51 +02:00
|
|
|
, nixpkgs-unstable
|
2023-08-14 08:37:20 +02:00
|
|
|
, sops-nix
|
2024-07-05 23:06:11 +02:00
|
|
|
, extra-config
|
2023-08-14 08:37:20 +02:00
|
|
|
, ... }@inputs:
|
2023-01-20 20:21:16 +01:00
|
|
|
let
|
2024-06-02 01:02:31 +02:00
|
|
|
pkgs-overlay = final: prev: {
|
2024-10-06 02:58:51 +02:00
|
|
|
unstable = import nixpkgs-unstable {
|
|
|
|
system = prev.system;
|
|
|
|
config.allowUnfree = true;
|
2024-06-02 01:02:31 +02:00
|
|
|
};
|
2024-09-23 14:23:22 +02:00
|
|
|
|
2024-10-06 02:58:51 +02:00
|
|
|
nixpkgs-2211 = import nixpkgs-2211 {
|
|
|
|
system = prev.system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
2024-12-11 10:56:13 +01:00
|
|
|
|
|
|
|
hyprswitch = hyprswitch.packages.${prev.system}.default;
|
2023-05-11 14:34:13 +02:00
|
|
|
};
|
2023-01-20 20:21:16 +01:00
|
|
|
in
|
|
|
|
{
|
2024-10-06 00:04:18 +02:00
|
|
|
nixosConfigurations = let
|
|
|
|
normalSys = name: config: nixpkgs.lib.nixosSystem {
|
2024-07-01 23:28:24 +02:00
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
};
|
|
|
|
modules = [
|
2024-10-06 00:04:18 +02:00
|
|
|
({ config, pkgs, ... }: {
|
|
|
|
# Make "pkgs.unstable" etc. available
|
|
|
|
nixpkgs.overlays = [ pkgs-overlay ] ++ config.overlays or [ ];
|
|
|
|
})
|
2024-07-01 23:28:24 +02:00
|
|
|
|
2024-10-06 00:04:18 +02:00
|
|
|
./hosts/${name}/configuration.nix
|
2024-07-01 23:28:24 +02:00
|
|
|
sops-nix.nixosModules.sops
|
|
|
|
home-manager.nixosModules.home-manager {
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
2024-10-06 00:04:18 +02:00
|
|
|
home-manager.users."felixalb" = import ./hosts/${name}/home.nix;
|
2024-07-01 23:28:24 +02:00
|
|
|
}
|
2024-10-06 00:04:18 +02:00
|
|
|
] ++ config.modules or [ ];
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
|
|
|
|
# Networking / VPN Gateway
|
|
|
|
burnham = normalSys "burnham" {
|
|
|
|
modules = [
|
|
|
|
./common/domeneshop-dyndns.nix
|
2024-07-01 23:28:24 +02:00
|
|
|
];
|
|
|
|
};
|
2024-10-06 00:04:18 +02:00
|
|
|
|
2024-09-13 14:10:54 +02:00
|
|
|
# Media / storage server
|
2024-10-06 00:04:18 +02:00
|
|
|
challenger = normalSys "challenger" {
|
2023-12-24 17:14:10 +01:00
|
|
|
modules = [
|
2024-09-13 14:10:54 +02:00
|
|
|
extra-config.nixosModules.default
|
2023-12-24 17:14:10 +01:00
|
|
|
];
|
|
|
|
};
|
2024-10-06 00:04:18 +02:00
|
|
|
|
2024-09-13 14:10:54 +02:00
|
|
|
# General application server
|
2024-10-06 00:04:18 +02:00
|
|
|
defiant = normalSys "defiant" {
|
2023-09-13 23:40:50 +02:00
|
|
|
modules = [
|
2024-09-13 14:10:54 +02:00
|
|
|
./common/domeneshop-dyndns.nix
|
|
|
|
matrix-synapse-next.nixosModules.default
|
2023-09-13 23:40:50 +02:00
|
|
|
];
|
|
|
|
};
|
2024-10-06 00:04:18 +02:00
|
|
|
|
2024-09-13 14:10:54 +02:00
|
|
|
# Work desktop
|
2024-10-06 00:04:18 +02:00
|
|
|
felixalbpc = normalSys "felixalbpc" { };
|
2024-01-25 11:31:05 +01:00
|
|
|
|
2024-09-13 14:10:54 +02:00
|
|
|
# Web host
|
2024-10-06 00:04:18 +02:00
|
|
|
malcolm = normalSys "malcolm" { };
|
2024-11-30 23:36:53 +01:00
|
|
|
|
|
|
|
# Home desktop
|
|
|
|
sisko = normalSys "sisko" { };
|
2023-01-20 20:21:16 +01:00
|
|
|
};
|
2024-10-06 00:04:18 +02:00
|
|
|
|
2024-09-13 14:10:54 +02:00
|
|
|
# Daily driver macbook
|
2023-07-26 09:06:51 +02:00
|
|
|
darwinConfigurations.worf = nix-darwin.lib.darwinSystem {
|
|
|
|
system = "aarch64-darwin";
|
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
};
|
|
|
|
modules = [
|
2024-06-02 01:02:31 +02:00
|
|
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ pkgs-overlay ]; })
|
2024-10-06 00:04:18 +02:00
|
|
|
|
|
|
|
./hosts/worf/configuration.nix
|
2023-07-26 10:48:52 +02:00
|
|
|
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
|
|
|
];
|
|
|
|
};
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|