2023-05-04 19:09:45 +02:00
|
|
|
{
|
|
|
|
inputs = {
|
2023-05-08 19:39:54 +02:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2023-05-17 05:07:14 +02:00
|
|
|
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager/master";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
hyprland = {
|
|
|
|
url = "github:hyprwm/Hyprland";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
stylix = {
|
|
|
|
url = "github:danth/stylix";
|
2023-05-17 05:35:52 +02:00
|
|
|
inputs = {
|
|
|
|
nixpkgs.follows = "nixpkgs";
|
|
|
|
home-manager.follows = "home-manager";
|
|
|
|
};
|
2023-05-17 05:07:14 +02:00
|
|
|
};
|
2023-05-19 11:40:10 +02:00
|
|
|
|
|
|
|
hypr-contrib = {
|
|
|
|
url = "github:hyprwm/contrib";
|
2023-05-23 18:27:49 +02:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2023-05-19 11:40:10 +02:00
|
|
|
};
|
2023-05-31 16:17:17 +02:00
|
|
|
|
|
|
|
nix-gaming = {
|
|
|
|
url = "github:fufexan/nix-gaming";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-05-04 19:09:45 +02:00
|
|
|
};
|
|
|
|
|
2023-06-03 19:51:35 +02:00
|
|
|
outputs = { self, nixpkgs, home-manager, hyprland, stylix, hypr-contrib, nix-gaming, ... }@attrs: let
|
|
|
|
variables = import ./examples/laptop.nix;
|
|
|
|
in {
|
|
|
|
nixosConfigurations."${variables.hostname}" = nixpkgs.lib.nixosSystem {
|
|
|
|
system = variables.system;
|
2023-05-19 02:28:51 +02:00
|
|
|
specialArgs = attrs;
|
2023-05-04 19:09:45 +02:00
|
|
|
modules = [
|
2023-05-19 02:28:51 +02:00
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
hyprland.nixosModules.default
|
|
|
|
stylix.nixosModules.stylix
|
2023-05-31 16:17:17 +02:00
|
|
|
nix-gaming.nixosModules.pipewireLowLatency
|
2023-05-19 01:12:30 +02:00
|
|
|
./applications
|
2023-05-25 22:49:17 +02:00
|
|
|
./common.nix
|
|
|
|
./user.nix
|
2023-05-19 01:12:30 +02:00
|
|
|
./desktop
|
|
|
|
./dev
|
2023-06-04 15:14:19 +02:00
|
|
|
./games.nix
|
2023-05-19 01:12:30 +02:00
|
|
|
./host
|
|
|
|
./terminal
|
2023-05-31 19:50:11 +02:00
|
|
|
./containers/rar.nix
|
2023-05-17 18:48:09 +02:00
|
|
|
{
|
2023-05-31 16:17:17 +02:00
|
|
|
hardware.opengl.driSupport32Bit = true;
|
|
|
|
|
2023-06-04 22:33:16 +02:00
|
|
|
boot.loader = {
|
|
|
|
systemd-boot = {
|
|
|
|
enable = true;
|
|
|
|
editor = false;
|
|
|
|
};
|
|
|
|
|
2023-06-04 22:34:39 +02:00
|
|
|
timeout = 0;
|
2023-06-04 22:33:16 +02:00
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
};
|
|
|
|
|
2023-06-04 18:37:01 +02:00
|
|
|
boot.tmp.useTmpfs = true;
|
2023-05-17 18:48:09 +02:00
|
|
|
|
2023-05-19 11:40:10 +02:00
|
|
|
environment.systemPackages = [
|
|
|
|
hypr-contrib.packages."x86_64-linux".grimblast
|
2023-05-31 16:17:17 +02:00
|
|
|
nix-gaming.packages."x86_64-linux".osu-stable
|
2023-05-19 11:40:10 +02:00
|
|
|
];
|
|
|
|
|
2023-05-17 18:48:09 +02:00
|
|
|
environment.sessionVariables = {
|
|
|
|
EDITOR = "nvim";
|
|
|
|
VISUAL = "nvim";
|
|
|
|
GIT_DISCOVERY_ACROSS_FILESYSTEM = "1";
|
|
|
|
FZF_DEFAULT_OPTS = "--height 40% --reverse --border --color=16";
|
|
|
|
NODE_OPTIONS = "--max_old_space_size=16384";
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.defaultPackages = [ ];
|
|
|
|
system.stateVersion = "22.11";
|
|
|
|
}
|
2023-05-04 19:09:45 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|