os/flake.nix
2024-11-21 21:57:45 +01:00

61 lines
2.1 KiB
Nix

{
description = "My OS config";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home.url = "github:nix-community/home-manager";
home.inputs.nixpkgs.follows = "nixpkgs";
firefox-gnome-theme = { url = "github:rafaelmardojai/firefox-gnome-theme"; flake = false; };
firefox-macos-theme = {url = "github:AdamXweb/WhiteSurFirefoxThemeMacOS"; flake = false; };
firefox-addons = { url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons"; inputs.nixpkgs.follows = "nixpkgs"; };
nur.url = "github:nix-community/NUR";
mac-app-util.url = "github:hraban/mac-app-util";
};
outputs = { self, nixpkgs, home, firefox-gnome-theme, firefox-addons, nur, nix-darwin, firefox-macos-theme, mac-app-util }@inputs: {
nixosConfigurations.iota = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
home.nixosModules.home-manager
{
imports = [
./nixos.nix
./hardware-configuration/iota.nix
{_module.args = {inherit inputs;};}
];
home-manager.users.steph = { imports = [ ./home.nix ./platforms/linux/home.nix ]; };
home-manager.extraSpecialArgs = { inherit inputs ; os = "linux"; };
}
];
};
nixosConfigurations.tau = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
home.nixosModules.home-manager
{
imports = [
./nixos.nix
./hardware-configuration/tau.nix
{_module.args = {inherit inputs;};}
];
home-manager.users.steph = { imports = [ ./home.nix ./platforms/linux/home.nix ]; };
home-manager.extraSpecialArgs = { inherit inputs ; os = "linux"; };
}
];
};
homeConfigurations.stephans = home.lib.homeManagerConfiguration rec {
pkgs = nixpkgs.legacyPackages."aarch64-darwin";
extraSpecialArgs = { inherit inputs ; os = "darwin"; };
modules = [
./home.nix
./platforms/darwin/home.nix
mac-app-util.homeManagerModules.default
];
};
};
}