61 lines
1.7 KiB
Nix
61 lines
1.7 KiB
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 = {
|
|
nova = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
{
|
|
networking.hostName = "nova";
|
|
boot.plymouth.enable = true;
|
|
services.xserver.enable = true;
|
|
services.xserver.displayManager.gdm.enable = true;
|
|
services.xserver.desktopManager.gnome.enable = true;
|
|
services.gnome.gnome-browser-connector.enable = true;
|
|
}
|
|
./system
|
|
./system/hardware-nova.nix
|
|
];
|
|
};
|
|
romulus = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
{
|
|
networking.hostName = "romulus";
|
|
environment.systemPackages = [
|
|
nixpkgs.wl-clipboard
|
|
];
|
|
programs.sway.enable = true;
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
};
|
|
}
|
|
./system
|
|
./system/hardware-romulus.nix
|
|
];
|
|
};
|
|
};
|
|
|
|
homeConfigurations = {
|
|
till = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
extraSpecialArgs = { inherit inputs; };
|
|
modules = [
|
|
./home
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|