36 lines
909 B
Nix
36 lines
909 B
Nix
{
|
|
description = "First stab at a flake for my system config";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
|
|
|
|
nixosConfigurations = {
|
|
romulus = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
{
|
|
programs.sway.enable = true;
|
|
networking.hostName = "romulus";
|
|
}
|
|
./hardware-romulus.nix
|
|
./configuration.nix
|
|
];
|
|
};
|
|
};
|
|
|
|
homeConfigurations = {
|
|
"till@romulus" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
extraSpecialArgs = { inherit inputs; };
|
|
modules = [
|
|
./home-manager/home.nix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|