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

80 lines
2.0 KiB
Nix
Raw Normal View History

2022-08-07 15:46:46 +01:00
{
description = "My personal dotfiles";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
2022-08-07 19:14:22 +01:00
2022-08-07 15:46:46 +01:00
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2022-08-07 19:14:22 +01:00
nur.url = "github:nix-community/NUR";
2022-08-07 20:02:21 +01:00
nur.inputs.nixpkgs.follows = "nixpkgs";
2022-08-08 10:01:42 +01:00
# Kakoune Plugins
kakoune-smarttab.url = "github:andreyorst/smarttab.kak";
kakoune-smarttab.flake = false;
kakoune-auto-pairs.url = "github:alexherbo2/auto-pairs.kak";
kakoune-auto-pairs.flake = false;
kakoune-sort-selections.url = "github:occivink/kakoune-sort-selections";
kakoune-sort-selections.flake = false;
# Kakoune Plugins End
rofi-theme.url = "github:bardisty/gruvbox-rofi";
rofi-theme.flake = false;
2022-08-07 15:46:46 +01:00
};
2022-08-07 19:14:22 +01:00
outputs = inputs@{ self, nixpkgs, home-manager, nur, ... }:
2022-08-07 15:46:46 +01:00
let
2022-08-07 20:02:21 +01:00
username = "manuel";
2022-08-08 10:01:42 +01:00
hostname = "terra";
2022-08-07 20:02:21 +01:00
2022-08-07 15:46:46 +01:00
system = "x86_64-linux";
pkgs = import nixpkgs {
2022-08-07 19:14:22 +01:00
inherit system;
2022-08-07 15:46:46 +01:00
config = { allowUnfree = true; };
2022-08-07 20:02:21 +01:00
overlays = [ self.overlays.default nur.overlay ];
2022-08-07 15:46:46 +01:00
};
in
{
2022-08-07 19:14:22 +01:00
overlays.default =
(final: prev: rec {
nerdfonts = prev.nerdfonts.override {
fonts = [
"JetBrainsMono"
];
};
2022-08-08 10:01:42 +01:00
discord = prev.discord.override {
nss = pkgs.nss_latest;
withOpenASAR = true;
};
2022-08-07 19:14:22 +01:00
});
2022-08-08 10:01:42 +01:00
nixosConfigurations.${hostname} = nixpkgs.lib.nixosSystem
2022-08-07 19:14:22 +01:00
{
inherit system;
2022-08-07 20:02:21 +01:00
specialArgs = { inherit inputs; };
2022-08-07 19:14:22 +01:00
modules = [
./system/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager =
{
useGlobalPkgs = true;
useUserPackages = true;
2022-08-07 20:02:21 +01:00
users.${username} = import ./user/home.nix;
extraSpecialArgs = {
inherit inputs;
inherit pkgs;
};
2022-08-07 19:14:22 +01:00
};
}
];
};
2022-08-07 15:46:46 +01:00
};
}
2022-08-07 19:14:22 +01:00