nixos-config/flake.nix
xbazzi ee7590b4b6
All checks were successful
Simple Mirror to GitHub / mirror (push) Successful in 31s
feat: cs2 resolution fix.
2025-08-24 14:26:42 -06:00

163 lines
4.2 KiB
Nix
Executable File

{
description = "My system configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
stylix = {
url = "github:danth/stylix";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprshell = {
url = "git+https://gitgud.foo/thegrind/hypr-shell.git";
};
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.4.2";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
winapps = {
url = "github:winapps-org/winapps";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "github:hyprwm/Hyprland";
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.nixpkgs.follows = "nixpkgs";
inputs.hyprland.follows = "hyprland";
};
# walker = {
# url = "github:abenz1267/walker";
# inputs.nixpkgs.follows = "nixpkgs";
# };
# hyprdots = {
# url = "github:JaKooLit/Hyprland-Dots";
# flake = false;
# };
# nixvim = {
# url = "github:xbazzi/nixvim";
# };
# nvf = {
# url = "github:notashelf/nvf";
# inputs.nixpkgs.follows = "nixpkgs";
# };
#stylix.url = "github:danth/stylix";
# nixvim = {
# url = "github:xbazzi/nixvim-config";
# };
};
outputs =
{ nixpkgs, lanzaboote, winapps, ... }@inputs:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
system = "x86_64-linux";
config = {
allowUnfree = true;
};
};
# configModule = {
# # Add any custom options (and do feel free to upstream them!)
# # options = { ... };
# # config.vim = {
# # theme.enable = true;
# # # and more options as you see fit...
# # };
# };
in
{
devShells.${system}.default = pkgs.mkShell {
buildInputs = [
pkgs.neovim
# pkgs.legacyPackages.x86_64-linux.claude-code
pkgs.vim
];
shellHook = ''
echo "hello"
'';
};
nixosConfigurations = {
nixos = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs system; };
modules = [
inputs.stylix.nixosModules.stylix
lanzaboote.nixosModules.lanzaboote
./system/default.nix
(
{ pkgs, lib, system ? pkgs.system, ... }:
{
environment.systemPackages = [
# For debugging and troubleshooting Secure Boot.
pkgs.sbctl
winapps.packages."${system}".winapps
winapps.packages."${system}".winapps-launcher # optional
];
# Lanzaboote currently replaces the systemd-boot module.
# This setting is usually set to true in configuration.nix
# generated at installation time. So we force it to false
# for now.
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.lanzaboote = {
enable = true;
pkiBundle = "/var/lib/sbctl";
};
}
)
];
};
};
homeConfigurations = {
"xbazzi@nixos" = inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = { inherit inputs; };
modules = [
# inputs.walker.homeManagerModules.default
inputs.hyprshell.homeManagerModules.default
inputs.stylix.homeModules.stylix
./home/default.nix
];
};
};
home-manager.useGlobalPkgs = true;
home-manager.users.xbazzi = {
nixpkgs.config.allowUnfree = true;
extraSpecialArgs = { inherit inputs; };
# imports =
};
# home-manager.users.xbazzi = {
# extraSpecialArgs = { inherit inputs; };
# nixpkgs.config.allowUnfree = true;
# # imports = inputs.hyprshell.homeManagerModules.default;
# #home.packages = [
# #];
# };
#home-manager.extraSpecialArgs
};
}