nixos/flake.nix
ISnortPennies f353281d6b updated afk-cmds pkg
removed AFKCommands
moved moonfly plugin to correct location
switched from alacritty to st
2022-09-24 00:16:50 -04:00

70 lines
1.8 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";
webcord.url = "github:fufexan/webcord-flake";
};
outputs = {self, nixpkgs, home-manager, spicetify-nix, webcord, ... }@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 {};
}
)
(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
];
};
};
};
}