dotfiles/flake.nix
2022-05-07 16:54:47 -04:00

70 lines
2.1 KiB
Nix

{
description = "My system";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
nur.url = "github:nix-community/nur";
};
outputs = { self, nixpkgs, home-manager, nur }:
let
globals = {
user = "noah";
fullName = "Noah Masur";
passwordHash =
"$6$J15o3OLElCEncVB3$0FW.R7YFBMgtBp320kkZO.TdKvYDLHmnP6dgktdrVYCC3LUvzXj0Fj0elR/fXo9geYwwWi.EAHflCngL5T.3g/";
gitEmail = "7386960+nmasur@users.noreply.github.com";
gui = {
colorscheme = (import ./modules/colorscheme/gruvbox);
wallpaper = ./media/wallpaper/gray-forest.jpg;
gtkTheme = "Adwaita-dark";
};
};
in {
nixosConfigurations = {
desktop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { };
modules = [
globals
{
networking.hostName = "desktop";
gui.enable = true;
gui.compositor.enable = true;
}
home-manager.nixosModules.home-manager
{ nixpkgs.overlays = [ nur.overlay ]; }
./hosts/desktop/hardware-configuration.nix
./hosts/common.nix
./modules/hardware
./modules/system
./modules/desktop
./modules/shell
./modules/gaming
./modules/services/keybase.nix
./modules/applications/firefox.nix
./modules/applications/alacritty.nix
./modules/applications/media.nix
./modules/applications/1password.nix
./modules/applications/discord.nix
./modules/editor/neovim
./modules/editor/notes.nix
];
};
};
devShells.x86_64-linux =
let pkgs = import nixpkgs { system = "x86_64-linux"; };
in {
default = pkgs.mkShell {
buildInputs = with pkgs; [ git stylua nixfmt shfmt shellcheck ];
};
};
};
}