nix-config/flake.nix

77 lines
2.0 KiB
Nix
Raw Normal View History

{
inputs = {
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
};
};
outputs = { self, nixpkgs, home-manager, hyprland, stylix, ... }@attrs: {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = attrs;
modules = [
2023-05-16 23:22:00 +02:00
./home-manager
hyprland.nixosModules.default
stylix.nixosModules.stylix
home-manager.nixosModules.home-manager
./laptop.nix
./modules/starship
./modules/fonts
./modules/stylix
./modules/htop
./modules/dual-function-keys
./modules/tlp
./modules/osu
./modules/srb2
./modules/mullvad
./modules/pipewire
./modules/networking
./modules/virtualization
./modules/xserver
./modules/systemd
./modules/vnstat
./modules/locale
./modules/firejail
./modules/timezone
./modules/nix
./modules/npm
./modules/home-manager
2023-05-17 21:58:08 +02:00
./modules/user
./modules/piper
./modules/packages
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
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";
}
];
};
};
}