mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 23:22:57 +00:00
68 lines
2.0 KiB
Nix
68 lines
2.0 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";
|
|
};
|
|
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager }:
|
|
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
|
|
./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.nix
|
|
./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 ];
|
|
};
|
|
};
|
|
|
|
};
|
|
}
|