nix-dotfiles/flake.nix

224 lines
3.2 KiB
Nix
Raw Normal View History

{
2024-03-31 00:44:48 +01:00
description = "My System flake";
inputs = {
2024-03-31 00:44:48 +01:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
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";
sops-nix.url = "github:Mic92/sops-nix";
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
2024-03-31 00:44:48 +01:00
};
2024-03-31 00:44:48 +01:00
outputs = {
self
, home-manager
, matrix-synapse-next
, nix-minecraft
, nixpkgs
, sops-nix
, unstable
, ... }@inputs:
let
overlay-unstable = final: prev: {
unstable = unstable.legacyPackages.${prev.system};
};
in
{
nixosConfigurations = {
# aragon = nixpkgs.lib.nixosSystem {
2024-04-18 01:05:45 +02:00
# system = "x83_64-linux";
2024-03-31 00:44:48 +01:00
# specialArgs = {
# inherit inputs;
# };
# modules = [
# # Overlays-module makes "pkgs.unstable" available in configuration.nix
# ({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
# ./machines/aragon/configuration.nix
# sops-nix.nixosModules.sops
# home-manager.nixosModules.home-manager {
# home-manager.useGlobalPkgs = true;
# home-manager.useUserPackages = true;
# home-manager.users."gunalx" = import ./home/home.nix;
# }
# ];
# };
2024-04-18 01:05:45 +02:00
aragon = nixpkgs.lib.nixosSystem {
system = "x84_64-linux";
specialArgs = {
inherit inputs;
};
modules = [
# Overlays-module makes "pkgs.unstable" available in configuration.nix
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
./machines/aragon/configuration.nix
sops-nix.nixosModules.sops
];
};
2024-03-31 00:44:48 +01:00
2024-04-18 01:05:45 +02:00
2024-03-31 00:44:48 +01:00
galadriel = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
2024-03-31 00:44:48 +01:00
inherit inputs;
};
modules = [
2024-03-31 00:44:48 +01:00
# Overlays-module makes "pkgs.unstable" available in configuration.nix
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
./machines/galadriel/configuration.nix
sops-nix.nixosModules.sops
];
2024-03-31 00:44:48 +01:00
};
2024-03-31 00:44:48 +01:00
elrond = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs;
};
2024-03-31 00:44:48 +01:00
modules = [
./machines/elrond/configuration.nix
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
sops-nix.nixosModules.sops
];
};
};
2024-03-31 00:44:48 +01:00
devShells.x86_64-linux = {
default = nixpkgs.legacyPackages.x86_64-linux.callPackage ./home/shell.nix { };
};
2024-03-31 00:44:48 +01:00
devShells.aarch64-linux = {
default = nixpkgs.legacyPackages.aarch64-linux.callPackage ./home/shell.nix { };
};
};
2024-03-31 00:44:48 +01:00
}