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
|
|
|
|
# Set the system type globally (changeme)
|
|
|
|
system = "x86_64-linux";
|
|
|
|
|
|
|
|
# Gather the Nix packages
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
|
|
|
|
2022-04-27 13:23:26 +00:00
|
|
|
user = "noah";
|
2022-04-29 00:54:37 +00:00
|
|
|
fullName = "Noah Masur";
|
|
|
|
font = {
|
|
|
|
package = pkgs.victor-mono;
|
|
|
|
name = "Victor Mono";
|
|
|
|
};
|
2022-04-29 02:25:05 +00:00
|
|
|
hostname = "nixos";
|
2022-04-29 03:04:48 +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-27 01:36:16 +00:00
|
|
|
inherit system;
|
2022-04-29 01:15:47 +00:00
|
|
|
specialArgs = {
|
|
|
|
gui = true;
|
2022-04-29 03:04:48 +00:00
|
|
|
inherit user fullName font hostname gtkTheme;
|
2022-04-29 01:15:47 +00:00
|
|
|
};
|
2022-04-27 01:36:16 +00:00
|
|
|
modules = [
|
2022-04-29 01:40:21 +00:00
|
|
|
home-manager.nixosModules.home-manager
|
2022-04-29 01:15:47 +00:00
|
|
|
./nixos/hardware-configuration.nix
|
2022-04-29 02:12:16 +00:00
|
|
|
./nixos/configuration.nix
|
2022-04-29 01:23:43 +00:00
|
|
|
./nixos/home.nix
|
2022-04-29 01:56:21 +00:00
|
|
|
./modules/desktop/xorg.nix
|
|
|
|
./modules/desktop/i3.nix
|
2022-04-29 02:25:05 +00:00
|
|
|
./modules/desktop/fonts.nix
|
|
|
|
./modules/hardware/boot.nix
|
2022-04-29 02:12:16 +00:00
|
|
|
./modules/hardware/mouse.nix
|
|
|
|
./modules/hardware/keyboard.nix
|
|
|
|
./modules/hardware/monitors.nix
|
|
|
|
./modules/hardware/audio.nix
|
2022-04-29 02:25:05 +00:00
|
|
|
./modules/hardware/networking.nix
|
2022-04-29 01:15:47 +00:00
|
|
|
./modules/system/timezone.nix
|
|
|
|
./modules/system/doas.nix
|
2022-04-29 01:56:21 +00:00
|
|
|
./modules/system/user.nix
|
2022-04-29 01:15:47 +00:00
|
|
|
./modules/gaming
|
|
|
|
./modules/services/keybase.nix
|
|
|
|
./modules/applications/firefox.nix
|
2022-04-29 01:40:21 +00:00
|
|
|
./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
|
2022-04-29 01:40:21 +00:00
|
|
|
./modules/shell/fish.nix
|
|
|
|
./modules/shell/utilities.nix
|
|
|
|
./modules/shell/git.nix
|
|
|
|
./modules/shell/github.nix
|
|
|
|
./modules/editor/neovim.nix
|
2022-04-27 01:36:16 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2022-04-27 13:23:26 +00:00
|
|
|
|
|
|
|
devShells.x86_64-linux.default = pkgs.mkShell {
|
|
|
|
buildInputs = with pkgs; [ stylua nixfmt shfmt shellcheck ];
|
|
|
|
};
|
|
|
|
|
2022-04-27 01:36:16 +00:00
|
|
|
};
|
|
|
|
}
|