2024-01-09 23:50:24 +01:00
|
|
|
{
|
|
|
|
description = "ZaneyOS";
|
|
|
|
|
|
|
|
inputs = {
|
2024-01-23 23:07:04 +01:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
home-manager.url = "github:nix-community/home-manager/master";
|
2024-01-09 23:50:24 +01:00
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
2024-01-14 08:27:50 +01:00
|
|
|
nix-colors.url = "github:misterio77/nix-colors";
|
2024-01-23 21:16:57 +01:00
|
|
|
hyprland.url = "github:hyprwm/Hyprland";
|
|
|
|
hyprland-plugins = {
|
|
|
|
url = "github:hyprwm/hyprland-plugins";
|
|
|
|
inputs.hyprland.follows = "hyprland";
|
|
|
|
};
|
2024-02-02 09:03:47 +01:00
|
|
|
nixvim = {
|
|
|
|
url = "github:nix-community/nixvim";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-01-09 23:50:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = inputs@{ nixpkgs, home-manager, ... }:
|
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
2024-01-15 22:49:11 +01:00
|
|
|
|
|
|
|
# User Variables
|
2024-01-12 08:07:42 +01:00
|
|
|
hostname = "hyprnix";
|
|
|
|
username = "zaney";
|
2024-01-13 06:53:25 +01:00
|
|
|
gitUsername = "Tyler Kelley";
|
|
|
|
gitEmail = "tylerzanekelley@gmail.com";
|
2024-01-13 07:05:01 +01:00
|
|
|
theLocale = "en_US.UTF-8";
|
2024-01-23 03:02:48 +01:00
|
|
|
theKBDLayout = "us";
|
|
|
|
theLCVariables = "en_US.UTF-8";
|
2024-01-13 07:05:01 +01:00
|
|
|
theTimezone = "America/Chicago";
|
2024-02-05 21:18:53 +01:00
|
|
|
theme = "rose-pine";
|
2024-01-24 10:48:25 +01:00
|
|
|
waybarStyle = "style2"; # can be style1-2
|
2024-01-30 00:06:24 +01:00
|
|
|
borderAnim = "on"; # anything other than on disables anim borders in Hyprland
|
2024-01-17 07:50:43 +01:00
|
|
|
browser = "firefox";
|
|
|
|
wallpaperGit = "https://gitlab.com/Zaney/my-wallpapers.git";
|
2024-01-17 09:17:12 +01:00
|
|
|
wallpaperDir = "/home/${username}/Pictures/Wallpapers";
|
2024-01-18 05:33:57 +01:00
|
|
|
flakeDir = "/home/${username}/zaneyos";
|
2024-01-24 00:43:03 +01:00
|
|
|
# Driver selection profile
|
2024-01-27 07:15:04 +01:00
|
|
|
# Options include amd (tested), intel, nvidia
|
2024-01-28 09:12:50 +01:00
|
|
|
# GPU hybrid options: intel-nvidia, intel-amd
|
2024-01-27 07:15:04 +01:00
|
|
|
# vm for both if you are running a vm
|
2024-02-05 05:12:56 +01:00
|
|
|
cpuType = "intel";
|
2024-01-24 00:43:03 +01:00
|
|
|
gpuType = "amd";
|
2024-01-27 08:03:09 +01:00
|
|
|
# Run: sudo lshw -c display to find this info
|
2024-01-29 16:13:50 +01:00
|
|
|
# This is needed ONLY for hybrid nvidia offloading
|
2024-01-27 08:03:09 +01:00
|
|
|
# Run: nvidia-offload (insert program name)
|
|
|
|
intel-bus-id = "PCI:0:2:0";
|
|
|
|
nvidia-bus-id = "PCI:14:0:0";
|
2024-01-15 22:49:11 +01:00
|
|
|
|
2024-01-09 23:50:24 +01:00
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
config = {
|
2024-01-18 05:33:57 +01:00
|
|
|
allowUnfree = true;
|
2024-01-09 23:50:24 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
nixosConfigurations = {
|
2024-01-18 05:33:57 +01:00
|
|
|
"${hostname}" = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = {
|
|
|
|
inherit system; inherit inputs;
|
|
|
|
inherit username; inherit hostname;
|
|
|
|
inherit gitUsername; inherit theTimezone;
|
|
|
|
inherit gitEmail; inherit theLocale;
|
|
|
|
inherit wallpaperDir; inherit wallpaperGit;
|
2024-01-24 00:43:03 +01:00
|
|
|
inherit cpuType; inherit theKBDLayout;
|
|
|
|
inherit theLCVariables; inherit gpuType;
|
2024-02-05 21:18:53 +01:00
|
|
|
inherit theme;
|
2024-01-13 06:53:25 +01:00
|
|
|
};
|
2024-01-20 19:53:14 +01:00
|
|
|
modules = [ ./system.nix
|
2024-01-09 23:50:24 +01:00
|
|
|
home-manager.nixosModules.home-manager {
|
2024-01-13 06:53:25 +01:00
|
|
|
home-manager.extraSpecialArgs = { inherit username;
|
2024-01-18 05:33:57 +01:00
|
|
|
inherit gitUsername; inherit gitEmail;
|
2024-02-04 19:07:07 +01:00
|
|
|
inherit theKBDLayout; inherit inputs;
|
|
|
|
inherit theme; inherit browser;
|
|
|
|
inherit wallpaperDir; inherit wallpaperGit;
|
|
|
|
inherit flakeDir; inherit gpuType;
|
|
|
|
inherit cpuType; inherit waybarStyle;
|
|
|
|
inherit borderAnim;
|
2024-01-18 05:33:57 +01:00
|
|
|
inherit (inputs.nix-colors.lib-contrib {inherit pkgs;}) gtkThemeFromScheme;
|
2024-01-13 06:53:25 +01:00
|
|
|
};
|
2024-01-09 23:50:24 +01:00
|
|
|
home-manager.useGlobalPkgs = true;
|
2024-02-01 07:27:52 +01:00
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.backupFileExtension = "backup";
|
2024-01-12 08:01:44 +01:00
|
|
|
home-manager.users.${username} = import ./home.nix;
|
2024-01-09 23:50:24 +01:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|