mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
73 lines
1.9 KiB
Nix
73 lines
1.9 KiB
Nix
{
|
|
description = "my personal configurations";
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
spicetify-nix.url = "github:the-argus/spicetify-nix";
|
|
};
|
|
|
|
outputs = {self, nixpkgs, home-manager, spicetify-nix, ... }@inputs:
|
|
let
|
|
username = "gerg";
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config = {
|
|
allowUnfree = true;
|
|
packageOverrides = super: let self = super.pkgs; in {
|
|
nerdfonts-overpass = self.nerdfonts.override {
|
|
fonts = [ "Overpass" ];
|
|
};
|
|
};
|
|
};
|
|
overlays = [
|
|
(final: prev: rec {
|
|
t-rex-miner = final.callPackage ./pkgs/t-rex-miner {};
|
|
afk-cmds = final.callPackage ./pkgs/afk-cmds {};
|
|
parrot = final.callPackage ./pkgs/parrot {};
|
|
discord = prev.discord.override {
|
|
withOpenASAR = true;
|
|
nss = prev.nss_latest;
|
|
};
|
|
})
|
|
(import ./suckless)
|
|
];
|
|
};
|
|
lib = nixpkgs.lib;
|
|
in {
|
|
homeConfigurations.${username} = home-manager.lib.homeManagerConfiguration {
|
|
inherit pkgs;
|
|
modules = [
|
|
./home-manager/home.nix
|
|
];
|
|
extraSpecialArgs = { inherit spicetify-nix; };
|
|
};
|
|
homeConfigurations.root = home-manager.lib.homeManagerConfiguration {
|
|
inherit pkgs;
|
|
modules = [
|
|
./home-manager/root.nix
|
|
];
|
|
};
|
|
nixosConfigurations = {
|
|
gerg-laptop = lib.nixosSystem {
|
|
inherit system pkgs;
|
|
specialArgs = inputs;
|
|
modules = [
|
|
./configuration.nix
|
|
./systems/laptop.nix
|
|
];
|
|
};
|
|
gerg-desktop = lib.nixosSystem {
|
|
inherit system pkgs;
|
|
specialArgs = inputs;
|
|
modules = [
|
|
./configuration.nix
|
|
./systems/desktop.nix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|