mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
96 lines
3.0 KiB
Nix
96 lines
3.0 KiB
Nix
{
|
|
description = "Flake for nixos configurations";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
home-manager = {
|
|
url = github:nix-community/home-manager;
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
jovian-nixos = {
|
|
url = "git+https://github.com/Jovian-Experiments/Jovian-NixOS?ref=development";
|
|
flake = false;
|
|
};
|
|
sops-nix.url = "github:Mic92/sops-nix";
|
|
hyprland.url = "github:hyprwm/Hyprland";
|
|
};
|
|
|
|
outputs = inputs @ { self, nixpkgs, home-manager, jovian-nixos, sops-nix, hyprland, ... }:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
};
|
|
lib = nixpkgs.lib;
|
|
user = "tstarr";
|
|
in {
|
|
nixosConfigurations = {
|
|
kestrel = lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit user; inherit inputs; };
|
|
modules = [
|
|
./modules
|
|
./hosts/kestrel/configuration.nix
|
|
./hosts/kestrel/hardware.nix
|
|
sops-nix.nixosModules.sops
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.extraSpecialArgs = { inherit user; };
|
|
home-manager.users.${user} = {
|
|
imports = [
|
|
./home-modules
|
|
./hosts/kestrel/home-configuration.nix
|
|
];
|
|
};
|
|
}
|
|
];
|
|
};
|
|
|
|
torus = lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit user; inherit inputs; };
|
|
modules = [
|
|
./modules
|
|
./hosts/torus/configuration.nix
|
|
./hosts/torus/hardware.nix
|
|
sops-nix.nixosModules.sops
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.extraSpecialArgs = { inherit user; };
|
|
home-manager.users.${user} = {
|
|
imports = [
|
|
./home-modules
|
|
./hosts/torus/home-configuration.nix
|
|
];
|
|
};
|
|
}
|
|
];
|
|
};
|
|
|
|
bulwark = lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit user; inherit inputs; inherit jovian-nixos; inherit home-manager; };
|
|
modules = [
|
|
./modules
|
|
./hosts/bulwark/configuration.nix
|
|
./hosts/bulwark/hardware.nix
|
|
sops-nix.nixosModules.sops
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.extraSpecialArgs = { inherit user; };
|
|
home-manager.users.${user} = {
|
|
imports = [
|
|
./home-modules
|
|
./hosts/bulwark/home-configuration.nix
|
|
];
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|