Something went wrong. Try again.
Personal-use NixOS configuration
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283{ inputs, flake, flakeRoot,}:
{ hostName, system, extraModules ? [ ], isLaptop ? false,}:
let pkgs = import inputs.nixpkgs { inherit system;
config.allowUnfree = true;
# Permitted until Bitwarden Desktop upgrades to a secure version config.permittedInsecurePackages = [ "electron-39.8.10" ]; };
pkgs-unstable = import inputs.nixpkgs-unstable { inherit system;
config.allowUnfree = true; };
pkgs-flake = flake.packages.${system};
pkgs-firefox-addons = inputs.nix-firefox-addons.addons.${system};
lib = inputs.nixpkgs.lib;
flakeLib = import ./default.nix { inherit pkgs lib;
nix-jetbrains-plugins = inputs.nix-jetbrains-plugins; };inlib.nixosSystem { inherit system;
modules = [ inputs.lix-module.nixosModules.default inputs.disko.nixosModules.disko
../hosts/${hostName}
{ nixpkgs.pkgs = pkgs;
networking.hostName = hostName; } ] ++ builtins.attrValues flake.nixosModules ++ lib.optionals isLaptop [ ../hardware/battery.nix ] ++ extraModules;
specialArgs = { inherit flakeRoot flakeLib pkgs-unstable pkgs-flake pkgs-firefox-addons isLaptop hostName ;
# TODO: use better inherit syntax for these lanzaboote = inputs.lanzaboote; nixos-hardware = inputs.nixos-hardware; home-manager = inputs.home-manager; nixcord = inputs.nixcord; };}