nixos-dotfiles/flake.nix

95 lines
2.0 KiB
Nix
Raw Normal View History

2022-08-07 15:46:46 +01:00
{
description = "My personal dotfiles";
inputs = {
2022-08-09 13:29:24 +01:00
nixpkgs = {
2022-08-11 08:59:55 +01:00
#url = "nixpkgs/nixos-unstable";
url = "nixpkgs/nixpkgs-unstable";
2022-08-09 13:29:24 +01:00
};
2022-08-07 19:14:22 +01:00
2022-08-09 13:29:24 +01:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2022-08-07 19:14:22 +01:00
2022-08-09 13:29:24 +01:00
nur = {
url = "github:nix-community/NUR";
inputs.nixpkgs.follows = "nixpkgs";
};
2022-08-08 10:01:42 +01:00
# Kakoune Plugins
2022-08-09 13:29:24 +01:00
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;
};
2022-08-08 10:01:42 +01:00
# Kakoune Plugins End
2022-08-09 13:29:24 +01:00
rofi-theme = {
url = "github:bardisty/gruvbox-rofi";
flake = false;
};
2022-08-07 15:46:46 +01:00
};
2022-08-11 08:59:55 +01:00
outputs = { self, nixpkgs, home-manager, nur, ... }@inputs:
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 {
2022-08-11 08:59:55 +01:00
2022-08-07 19:14:22 +01:00
nerdfonts = prev.nerdfonts.override {
fonts = [
"JetBrainsMono"
];
};
2022-08-11 08:59:55 +01:00
2022-08-08 10:01:42 +01:00
discord = prev.discord.override {
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
{
2022-08-11 08:59:55 +01:00
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.${username} = import ./user/home.nix;
extraSpecialArgs = {
inherit inputs;
inherit pkgs;
2022-08-07 19:14:22 +01:00
};
2022-08-11 08:59:55 +01:00
};
2022-08-07 19:14:22 +01:00
}
];
};
2022-08-07 15:46:46 +01:00
};
}
2022-08-07 19:14:22 +01:00