dotfiles/flake.nix

69 lines
1.8 KiB
Nix
Raw Normal View History

2022-04-27 01:36:16 +00:00
{
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
2022-04-30 16:07:58 +00:00
identity = {
user = "noah";
name = "Noah Masur";
hostname = "nixos";
gitEmail = "7386960+nmasur@users.noreply.github.com";
2022-04-27 01:36:16 +00:00
};
2022-04-30 16:07:58 +00:00
gui = {
enable = false;
font = {
2022-05-01 15:16:48 +00:00
package = "victor-mono";
2022-04-30 16:07:58 +00:00
name = "Victor Mono";
};
2022-05-04 00:32:47 +00:00
theme = "gruvbox";
2022-04-30 16:07:58 +00:00
gtkTheme = "Adwaita-dark";
2022-04-29 00:54:37 +00:00
};
2022-04-27 01:36:16 +00:00
in {
nixosConfigurations = {
2022-04-27 13:23:26 +00:00
desktop = nixpkgs.lib.nixosSystem {
2022-04-30 16:07:58 +00:00
system = "x86_64-linux";
specialArgs = {
2022-04-30 16:07:58 +00:00
gui = gui // { enable = true; };
inherit identity;
};
2022-04-27 01:36:16 +00:00
modules = [
home-manager.nixosModules.home-manager
2022-05-02 03:39:50 +00:00
./hosts/desktop/hardware-configuration.nix
./modules/common.nix
2022-04-30 16:32:00 +00:00
./modules/desktop
2022-05-04 00:32:47 +00:00
./modules/theme
2022-04-30 16:32:00 +00:00
./modules/hardware
./modules/system
./modules/shell
./modules/gaming
./modules/services/keybase.nix
./modules/applications/firefox.nix
./modules/applications/alacritty.nix
2022-04-29 02:43:50 +00:00
./modules/applications/media.nix
2022-04-29 02:44:42 +00:00
./modules/applications/1password.nix
2022-04-30 02:29:50 +00:00
./modules/applications/discord.nix
./modules/editor/neovim.nix
2022-05-02 03:39:50 +00:00
./modules/editor/notes.nix
2022-04-27 01:36:16 +00:00
];
};
};
2022-05-01 15:16:48 +00:00
devShells.x86_64-linux =
let pkgs = import nixpkgs { system = "x86_64-linux"; };
in {
default = pkgs.mkShell {
buildInputs = with pkgs; [ stylua nixfmt shfmt shellcheck ];
};
};
2022-04-27 13:23:26 +00:00
2022-04-27 01:36:16 +00:00
};
}