os/flake.nix

46 lines
1.2 KiB
Nix
Raw Normal View History

2022-07-20 21:00:50 +02:00
{
description = "A very basic flake";
inputs = {
2024-07-01 22:40:58 +02:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
2022-07-20 21:00:50 +02:00
2024-07-01 22:40:58 +02:00
home.url = "github:nix-community/home-manager/release-24.05";
2022-07-20 21:00:50 +02:00
home.inputs.nixpkgs.follows = "nixpkgs";
2024-07-01 22:40:58 +02:00
firefox-gnome-theme = { url = "github:rafaelmardojai/firefox-gnome-theme"; flake = false; };
2022-07-20 21:00:50 +02:00
};
2024-07-01 22:40:58 +02:00
outputs = { self, nixpkgs, home, firefox-gnome-theme }@inputs: {
2022-07-20 21:00:50 +02:00
nixosConfigurations.iota = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
home.nixosModules.home-manager
{
2022-09-18 18:16:34 +02:00
imports = [
./configuration.nix
./hardware-configuration/iota.nix
2024-07-01 22:40:58 +02:00
{_module.args = {inherit inputs;};}
2022-09-18 18:16:34 +02:00
];
2024-07-01 22:57:35 +02:00
home-manager.users.steph = import ./home.nix;
2024-07-01 23:04:26 +02:00
home-manager.extraSpecialArgs = { inherit inputs ; };
2022-09-18 18:16:34 +02:00
}];
};
nixosConfigurations.tau = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
home.nixosModules.home-manager
{
imports = [
./configuration.nix
./hardware-configuration/tau.nix
2024-07-01 22:40:58 +02:00
{_module.args = {inherit inputs;};}
2022-09-18 18:16:34 +02:00
];
2024-07-01 22:57:35 +02:00
home-manager.users.steph = import ./home.nix;
2024-07-01 23:04:26 +02:00
home-manager.extraSpecialArgs = { inherit inputs ; };
2022-07-20 21:00:50 +02:00
}];
};
};
}