This repository has been archived on 2024-04-14. You can view files and clone it, but cannot push or open issues or pull requests.
nixos-dotfiles/flake.nix

93 lines
2.1 KiB
Nix

{
description = "My personal dotfiles";
inputs = {
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nur = {
url = "github:nix-community/NUR";
inputs.nixpkgs.follows = "nixpkgs";
};
# Kakoune Plugins
kakoune-smarttab = {
url = "github:andreyorst/smarttab.kak";
flake = false;
};
kakoune-auto-pairs = {
url = "github:alexherbo2/auto-pairs.kak";
flake = false;
};
kakoune-sort-selections = {
url = "github:occivink/kakoune-sort-selections";
flake = false;
};
# Kakoune Plugins End
rofi-theme = {
url = "github:bardisty/gruvbox-rofi";
flake = false;
};
grub2-themes.url = "github:vinceliuice/grub2-themes";
};
outputs = { self, nixpkgs, home-manager, nur, grub2-themes, ... }@inputs:
let
username = "manuel";
hostname = "terra";
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
allowUnsupportedSystem = true;
};
overlays = [ self.overlays.default nur.overlay ];
};
in
{
overlays.default =
(final: prev: rec {
nerdfonts = prev.nerdfonts.override {
fonts = [
"JetBrainsMono"
];
};
});
nixosConfigurations.${hostname} = nixpkgs.lib.nixosSystem
{
inherit system;
specialArgs = { inherit inputs; };
modules = [
./system/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.${username} = import ./user/home.nix;
extraSpecialArgs = {
inherit inputs;
inherit pkgs;
};
};
}
grub2-themes.nixosModule
];
};
};
}