1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-01-31 07:03:36 +00:00
.dotfiles/nixos/flake.nix

50 lines
1.5 KiB
Nix
Raw Normal View History

2024-12-17 20:50:18 +00:00
{
description = "rae's nixOS config flake";
inputs = {
2024-12-17 22:06:47 +00:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
2025-01-01 20:52:39 +00:00
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
2024-12-17 20:50:18 +00:00
home-manager = {
2024-12-17 22:06:47 +00:00
url = "github:nix-community/home-manager/release-24.11";
2024-12-17 20:50:18 +00:00
inputs.nixpkgs.follows = "nixpkgs";
};
2024-12-20 02:56:56 +00:00
# Nix User Repository
2024-12-18 05:36:56 +00:00
nur = {
url = "github:nix-community/NUR";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-12-20 02:56:56 +00:00
# Rust toolchains
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-12-17 20:50:18 +00:00
};
2024-12-17 21:16:23 +00:00
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
2025-01-02 02:01:45 +00:00
nixosConfigurations =
let
system = hostname: {
name = hostname;
value = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
./hosts/${hostname}/configuration.nix
];
};
};
in builtins.listToAttrs [
(system "ioides")
(system "qemu")
];
2024-12-17 22:06:47 +00:00
homeConfigurations.rae = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs; };
2024-12-18 21:38:29 +00:00
modules = [
2024-12-20 03:10:05 +00:00
./home
2024-12-18 21:38:29 +00:00
];
2024-12-17 22:06:47 +00:00
};
2024-12-17 20:50:18 +00:00
};
}