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";
|
|
|
|
};
|
2024-07-16 00:43:51 -03:00
|
|
|
|
2024-07-17 11:35:44 -03:00
|
|
|
spicetify-nix = {
|
|
|
|
url = "github:Gerg-L/spicetify-nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-08-01 10:53:55 -03:00
|
|
|
|
2024-10-17 20:31:04 -03:00
|
|
|
clipboard-sync = {
|
|
|
|
url = "github:dnut/clipboard-sync";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-11-12 00:23:57 -03:00
|
|
|
hyprland.url = "github:hyprwm/Hyprland";
|
2023-11-05 04:53:31 -03:00
|
|
|
};
|
|
|
|
|
2024-06-24 03:20:30 -03:00
|
|
|
outputs =
|
2024-07-22 13:49:55 -03:00
|
|
|
{ home-manager, nixpkgs, ... }@inputs:
|
2024-06-24 03:20:30 -03:00
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
2024-07-11 04:53:41 -03:00
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
2024-06-24 03:20:30 -03:00
|
|
|
in
|
|
|
|
{
|
2024-09-16 18:45:39 -03:00
|
|
|
nixosConfigurations = {
|
|
|
|
wizdesk =
|
|
|
|
let
|
|
|
|
specialArgs = inputs;
|
|
|
|
modules = [
|
2024-09-17 11:29:25 -03:00
|
|
|
./specific/desktop/nixos.nix
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.extraSpecialArgs = inputs;
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.wizardlink = import ./specific/desktop/home-manager.nix;
|
|
|
|
}
|
2024-09-16 18:45:39 -03:00
|
|
|
];
|
|
|
|
in
|
|
|
|
nixpkgs.lib.nixosSystem { inherit system specialArgs modules; };
|
|
|
|
|
|
|
|
wizlap =
|
|
|
|
let
|
|
|
|
specialArgs = inputs;
|
|
|
|
modules = [
|
2024-09-17 11:29:25 -03:00
|
|
|
./specific/laptop/nixos.nix
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.extraSpecialArgs = inputs;
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.wizardlink = import ./specific/laptop/home-manager.nix;
|
|
|
|
}
|
2024-09-16 18:45:39 -03:00
|
|
|
];
|
|
|
|
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;
|
2024-09-16 18:45:39 -03:00
|
|
|
|
|
|
|
homeManagerModules = {
|
2024-09-18 00:26:49 -03:00
|
|
|
common = import ./modules/home-manager/common.nix;
|
|
|
|
default = import ./modules/home-manager;
|
|
|
|
emacsConfig = import ./modules/home-manager/programs/emacs;
|
2024-09-16 18:45:39 -03:00
|
|
|
hyprlandConfig = import ./modules/home-manager/programs/hyprland;
|
|
|
|
neovim = import ./modules/home-manager/programs/neovim;
|
2024-09-18 00:26:49 -03:00
|
|
|
theming = import ./modules/home-manager/theming.nix;
|
2024-09-16 18:45:39 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
nixosModules = {
|
2024-09-18 00:26:49 -03:00
|
|
|
common = import ./modules/nixos/common.nix;
|
2024-09-16 18:45:39 -03:00
|
|
|
default = import ./modules/nixos;
|
2024-09-18 00:26:49 -03:00
|
|
|
desktop = import ./modules/nixos/desktop.nix;
|
|
|
|
hardware = import ./modules/nixos/hardware.nix;
|
|
|
|
sound = import ./modules/nixos/sound.nix;
|
|
|
|
system = import ./modules/nixos/system.nix;
|
2024-09-16 18:45:39 -03:00
|
|
|
};
|
2024-01-16 11:33:01 -03:00
|
|
|
};
|
2023-11-05 04:53:31 -03:00
|
|
|
}
|