{ description = "System"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; home-manager = { url = "github:nix-community/home-manager/release-26.05"; inputs.nixpkgs.follows = "nixpkgs"; }; # zen-browser = { # url = "github:0xc000022070/zen-browser-flake"; # inputs = { # # IMPORTANT: we're using "libgbm" and is only available in unstable so # # ensure to have it up-to-date or simply don't specify the nixpkgs input # nixpkgs.follows = "nixpkgs"; # home-manager.follows = "home-manager"; # }; # }; }; outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, ... }@inputs: let system = "x86_64-linux"; username = "aargh"; hostname = "pegasus"; opt = { nvidia = true; tailscale = true; vm = true; llm = true; }; languages = { c = true; asm = true; lua = true; # needed for nvim go = false; python = false; beam = false; javascript = false; rust = false; zig = false; }; terminalworkspace = { tmux = true; zellij = false; }; games = { enable = true; minecraft = true; }; sessions = { i3_x11 = true; plasma_x11 = true; # this is entirely backup, there is no rice here }; dualbootedwithwindows = false; # This is where I have keep the dotfiles folder, replace it accordingly symlinkRoot = "/home/${username}/dotfiles"; unstable = import nixpkgs-unstable { inherit system; config.allowUnfree = true; }; in { nixosConfigurations.main = nixpkgs.lib.nixosSystem { inherit system; specialArgs = { inherit inputs system username hostname unstable symlinkRoot opt languages terminalworkspace dualbootedwithwindows games sessions; }; modules = [ { nixpkgs.config = { allowUnfree = true; permittedInsecurePackages = [ "ventoy-1.1.12" ]; }; } ./nixos/configuration.nix home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; home-manager.extraSpecialArgs = { inherit inputs username unstable symlinkRoot; }; home-manager.backupFileExtension = "hm-backup"; home-manager.users.${username} = import ./home-manager/home.nix; } ]; }; }; }