1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-01-30 22:53:37 +00:00
.dotfiles/nixos/flake.nix

52 lines
1.7 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";
2025-01-18 20:01:56 +00:00
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";
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
};
2025-01-18 20:01:56 +00:00
outputs = { self, nixpkgs, home-manager, nix-flatpak, ... }@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 = [
2025-01-18 20:01:56 +00:00
nix-flatpak.nixosModules.nix-flatpak
2025-01-02 02:01:45 +00:00
./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
};
}