56 lines
1.9 KiB
Nix
56 lines
1.9 KiB
Nix
{
|
|
description = "My OS config";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
|
|
|
home.url = "github:nix-community/home-manager/release-24.05";
|
|
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";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home, firefox-gnome-theme, firefox-addons, nur, nix-darwin, firefox-macos-theme }@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 ];
|
|
};
|
|
|
|
};
|
|
}
|