mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-26 13:05:37 +00:00
69 lines
1.8 KiB
Nix
69 lines
1.8 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
|
|
identity = {
|
|
user = "noah";
|
|
name = "Noah Masur";
|
|
hostname = "nixos";
|
|
gitEmail = "7386960+nmasur@users.noreply.github.com";
|
|
};
|
|
gui = {
|
|
enable = false;
|
|
font = {
|
|
package = "victor-mono";
|
|
name = "Victor Mono";
|
|
};
|
|
theme = "gruvbox";
|
|
gtkTheme = "Adwaita-dark";
|
|
};
|
|
in {
|
|
nixosConfigurations = {
|
|
desktop = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {
|
|
gui = gui // { enable = true; };
|
|
inherit identity;
|
|
};
|
|
modules = [
|
|
home-manager.nixosModules.home-manager
|
|
./hosts/desktop/hardware-configuration.nix
|
|
./modules/common.nix
|
|
./modules/desktop
|
|
./modules/theme
|
|
./modules/hardware
|
|
./modules/system
|
|
./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; [ stylua nixfmt shfmt shellcheck ];
|
|
};
|
|
};
|
|
|
|
};
|
|
}
|