linuxware/flake.nix

100 lines
2.8 KiB
Nix
Raw Normal View History

2023-11-05 04:53:31 -03:00
{
description = "NixOS System Flake";
inputs = {
2024-08-23 13:39:01 -03:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2023-11-05 04:53:31 -03:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
spicetify-nix = {
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-08-01 10:53:55 -03:00
clipboard-sync = {
url = "github:dnut/clipboard-sync";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "github:hyprwm/Hyprland";
hydractify-bot.url = "github:hydractify/hydractify-bot";
2025-04-16 13:27:33 -03:00
blink-cmp.url = "github:Saghen/blink.cmp";
2023-11-05 04:53:31 -03:00
};
outputs =
2025-01-16 21:03:29 -03:00
{
home-manager,
nixpkgs,
...
}@inputs:
let
system = "x86_64-linux";
2024-07-11 04:53:41 -03:00
pkgs = nixpkgs.legacyPackages.${system};
in
{
nixosConfigurations = {
wizdesk =
let
specialArgs = inputs;
modules = [
./hosts/wizdesk/nixos.nix
home-manager.nixosModules.home-manager
{
home-manager.extraSpecialArgs = inputs;
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.wizardlink = import ./hosts/wizdesk/home-manager.nix;
}
];
in
nixpkgs.lib.nixosSystem { inherit system specialArgs modules; };
wizlap =
let
specialArgs = inputs;
modules = [
./hosts/wizlap/nixos.nix
home-manager.nixosModules.home-manager
{
home-manager.extraSpecialArgs = inputs;
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.wizardlink = import ./hosts/wizlap/home-manager.nix;
}
];
in
nixpkgs.lib.nixosSystem { inherit system specialArgs modules; };
};
2024-04-11 20:02:59 -03:00
2024-07-11 04:53:41 -03:00
formatter."${system}" = pkgs.nixfmt-rfc-style;
packages."${system}" = {
deadlock-api-ingest = pkgs.callPackage ./packages/deadlock-api-ingest.nix { };
lmms = pkgs.callPackage ./packages/lmms/package.nix { };
2025-03-07 22:43:15 -03:00
miraclecast = pkgs.callPackage ./packages/miraclecast.nix { };
wb32dfu-udev-rules = pkgs.callPackage ./packages/wb32dfu-udev-rules { };
};
nixosModules = {
hyprland = import ./modules/hyprland/nixos.nix;
};
homeManagerModules = {
emacs = import ./modules/emacs;
hyprland = import ./modules/hyprland/home-manager.nix;
neovim = import ./modules/neovim;
};
templates.default = {
path = ./modules/template;
description = ''
A NixOS & Home-Manager template to get started with the https://github.com/wizardlink/linuxware configuration.
'';
};
};
2023-11-05 04:53:31 -03:00
}