93 lines
2.1 KiB
Nix
93 lines
2.1 KiB
Nix
{
|
|
description = "Nix Desktop Configuration";
|
|
|
|
inputs = {
|
|
# monorepo w/ recipes ("derivations")
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
# declarative Configs
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/master";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# declarative Hyprland
|
|
hyprland = {
|
|
url = "github:hyprwm/Hyprland";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
hyprland-plugins = {
|
|
url = "github:hyprwm/hyprland-plugins";
|
|
inputs.hyprland.follows = "hyprland";
|
|
};
|
|
|
|
hyprcursor = {
|
|
url = "github:hyprwm/hyprcursor";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# declarative Neovim
|
|
nixvim = {
|
|
url = "github:nix-community/nixvim";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# declarative Discord
|
|
nixcord = {
|
|
url = "github:kaylorben/nixcord";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# declarative Spotify
|
|
spicetify-nix = {
|
|
url = "github:Gerg-L/spicetify-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# declarative Encryption
|
|
sops-nix = {
|
|
url = "github:Mic92/sops-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# declarative Catppuccin
|
|
catppuccin = {
|
|
url = "github:catppuccin/nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
{
|
|
self,
|
|
nixpkgs,
|
|
home-manager,
|
|
nixvim,
|
|
hyprland,
|
|
sops-nix,
|
|
...
|
|
}@inputs:
|
|
let
|
|
primaryUser = "phil";
|
|
in
|
|
{
|
|
# $ nixos-rebuild switch --flake .#<name>
|
|
nixosConfigurations."cyper-desktop" = nixpkgs.lib.nixosSystem {
|
|
modules = [
|
|
{ nixpkgs.hostPlatform = "x86_64-linux"; }
|
|
./nixos
|
|
./hosts/cyper-desktop/configuration.nix
|
|
inputs.home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.extraSpecialArgs = { inherit inputs primaryUser self; };
|
|
home-manager.users.${primaryUser} = import ./home;
|
|
}
|
|
inputs.sops-nix.nixosModules.sops
|
|
];
|
|
specialArgs = { inherit inputs primaryUser self; };
|
|
};
|
|
|
|
};
|
|
}
|